Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2015-06-09 16:20:21 -0400
committerdonald.g.dunne2015-07-09 19:09:19 -0400
commit117820c25c4a62efe57799d9048abea84d658602 (patch)
treed8ed235f5148ec76bc2a8520dd8a79fa822c83d2 /plugins/org.eclipse.osee.ats.core.test
parent76d42fa92415eb6126affac3513de7084826126c (diff)
downloadorg.eclipse.osee-117820c25c4a62efe57799d9048abea84d658602.tar.gz
org.eclipse.osee-117820c25c4a62efe57799d9048abea84d658602.tar.xz
org.eclipse.osee-117820c25c4a62efe57799d9048abea84d658602.zip
feature[ats_ATS206644]: Add ability to disable user creation of Actions
Diffstat (limited to 'plugins/org.eclipse.osee.ats.core.test')
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java
index 4df315d4d8..ba958b5acd 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java
@@ -30,7 +30,7 @@ import org.mockito.MockitoAnnotations;
/**
* Test unit for {@link ModifyActionableItems}
- *
+ *
* @author Donald G Dunne
*/
public class ModifyActionableItemsTest {
@@ -110,6 +110,7 @@ public class ModifyActionableItemsTest {
when(teamWf.getActionableItems()).thenReturn(
org.eclipse.osee.framework.jdk.core.util.Collections.hashSet(ai1, ai2));
when(ai3.isActionable()).thenReturn(true);
+ when(ai3.isAllowUserActionCreation()).thenReturn(true);
when(teamDefUtil.getImpactedTeamDefs(Arrays.asList(ai3))).thenReturn(Collections.singleton(teamDef));
XResultData results = new XResultData(false);
@@ -139,6 +140,7 @@ public class ModifyActionableItemsTest {
when(teamWf.getActionableItems()).thenReturn(
org.eclipse.osee.framework.jdk.core.util.Collections.hashSet(ai1, ai2));
when(ai2.isActionable()).thenReturn(true);
+ when(ai2.isAllowUserActionCreation()).thenReturn(true);
when(teamDefUtil.getImpactedTeamDefs(Arrays.asList(ai2))).thenReturn(Collections.singleton(teamDef));
XResultData results = new XResultData(false);

Back to the top