Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-03-23 16:46:53 -0400
committerRyan D. Brooks2016-03-23 16:46:53 -0400
commitbd6dd7f697e23fe91df8e91baee61439005d612c (patch)
tree475599a611088ce6a84d7cf3214d339ca0f22ebc /plugins/org.eclipse.osee.ats.core.test
parentc1af90774c65d428826ce45f5e76e3d8194bac64 (diff)
downloadorg.eclipse.osee-bd6dd7f697e23fe91df8e91baee61439005d612c.tar.gz
org.eclipse.osee-bd6dd7f697e23fe91df8e91baee61439005d612c.tar.xz
org.eclipse.osee-bd6dd7f697e23fe91df8e91baee61439005d612c.zip
feature[ats_ATS266887]: Add Attr, Name and Uuid to AtsColumnService
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/column/ActionableItemsColumnTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java12
2 files changed, 10 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActionableItemsColumnTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActionableItemsColumnTest.java
index c539717dd6..1b586c8544 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActionableItemsColumnTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActionableItemsColumnTest.java
@@ -118,7 +118,7 @@ public class ActionableItemsColumnTest {
when(aia1.getName()).thenReturn("AI 1");
when(aia2.getName()).thenReturn("AI 2");
- String results = new ActionableItemsColumn().getActionableItemsStr(teamWf1);
+ String results = new ActionableItemsColumn(null).getActionableItemsStr(teamWf1);
Assert.assertTrue(results.contains("AI 1"));
Assert.assertTrue(results.contains("AI 2"));
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java
index c90fe9be20..7ea6e60523 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java
@@ -42,14 +42,20 @@ public class AssigneeColumnTest extends AbstractUserTest {
@Mock private AtsActionGroup group;
// @formatter:on
+ private AssigneeColumn column;
+ private ImplementersColumn implementersColumn;
+
@Override
@Before
public void setup() {
super.setup();
when(workItem.getStateMgr()).thenReturn(stateMgr);
-
when(workItem2.getStateMgr()).thenReturn(stateMgr2);
+
+ implementersColumn = new ImplementersColumn();
+ column = new AssigneeColumn(implementersColumn);
+
}
@org.junit.Test
@@ -78,8 +84,8 @@ public class AssigneeColumnTest extends AbstractUserTest {
when(workItem.getImplementers()).thenReturn(implementersToReturn);
when(stateMgr.getStateType()).thenReturn(StateType.Completed);
when(workItem.getCompletedBy()).thenReturn(steve);
- Assert.assertEquals("(steve)", AssigneeColumn.instance.getAssigneeStr(workItem));
- Assert.assertTrue(AssigneeColumn.instance.getAssigneeStr(workItem).contains("steve"));
+ Assert.assertEquals("(steve)", column.getAssigneeStr(workItem));
+ Assert.assertTrue(column.getAssigneeStr(workItem).contains("steve"));
// add alice as completedFromState assignee
implementersToReturn.add(steve);

Back to the top