Skip to content

Commit

Permalink
Test for getting properties of parent org (MID-1764)
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jun 16, 2015
1 parent cd27225 commit 5c80690
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Expand Up @@ -209,6 +209,8 @@ public void test802JackAssignOrganized() throws Exception {
assertDefaultDummyAccount(ACCOUNT_JACK_DUMMY_USERNAME, USER_JACK_FULL_NAME, true);
assertDummyAccountAttribute(null, ACCOUNT_JACK_DUMMY_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_TITLE_NAME, "Proud member of F0006");
assertDummyAccountAttribute(null, ACCOUNT_JACK_DUMMY_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_QUOTE_NAME, "Arr!", "I say: Hosting the worst scumm of the Caribbean.");

// Postcondition
assertMonkeyIslandOrgSanity();
Expand All @@ -235,6 +237,8 @@ public void test804JackUnAssignOrganized() throws Exception {
assertDefaultDummyAccount(ACCOUNT_JACK_DUMMY_USERNAME, USER_JACK_FULL_NAME, true);
assertDummyAccountAttribute(null, ACCOUNT_JACK_DUMMY_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_TITLE_NAME);
assertDummyAccountAttribute(null, ACCOUNT_JACK_DUMMY_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_QUOTE_NAME, "Arr!");

// Postcondition
assertMonkeyIslandOrgSanity();
Expand Down
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2014 Evolveum
~ Copyright (c) 2014-2015 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -36,6 +36,16 @@
</expression>
</outbound>
</attribute>
<attribute>
<ref>ri:quote</ref>
<outbound>
<expression>
<script>
<code>'I say: ' + midpoint.getParentOrgByOrgType(focus, 'functional')?.getDescription()</code>
</script>
</expression>
</outbound>
</attribute>
</construction>
</inducement>
</role>

0 comments on commit 5c80690

Please sign in to comment.