Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-04-07 19:00:17 -0400
committerRyan D. Brooks2016-04-07 19:00:17 -0400
commit56261745a97569b5983fca2020bdbeba058ddcd2 (patch)
treee6914f6b369b7b526ae7537537ae52b6384bdc93 /plugins/org.eclipse.osee.ats.core.test
parent05833ceeeae16321680729706990b987cd8e4642 (diff)
downloadorg.eclipse.osee-56261745a97569b5983fca2020bdbeba058ddcd2.tar.gz
org.eclipse.osee-56261745a97569b5983fca2020bdbeba058ddcd2.tar.xz
org.eclipse.osee-56261745a97569b5983fca2020bdbeba058ddcd2.zip
feature[ats_ATS266887]: Convert TeamColumn to AbstractServicesColumn
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/internal/column/TeamColumnUtilityTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java
index b111cbba6e..c3df084f62 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java
@@ -12,12 +12,14 @@ package org.eclipse.osee.ats.core.internal.column;
import static org.mockito.Mockito.when;
import java.util.Collections;
+import org.eclipse.osee.ats.api.IAtsServices;
import org.eclipse.osee.ats.api.ai.IAtsActionableItem;
import org.eclipse.osee.ats.api.review.IAtsAbstractReview;
import org.eclipse.osee.ats.api.review.IAtsReviewService;
import org.eclipse.osee.ats.api.team.IAtsTeamDefinition;
import org.eclipse.osee.ats.api.workflow.IAtsTeamWorkflow;
import org.eclipse.osee.ats.api.workflow.IAtsWorkItemService;
+import org.eclipse.osee.ats.core.column.TeamColumn;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
@@ -39,6 +41,7 @@ public class TeamColumnUtilityTest {
@Mock private IAtsActionableItem ai;
@Mock private IAtsWorkItemService workItemService;
@Mock private IAtsReviewService reviewService;
+ @Mock private IAtsServices services;
// @formatter:on
@Before
@@ -53,11 +56,12 @@ public class TeamColumnUtilityTest {
when(reviewService.isStandAloneReview(standAloneReview)).thenReturn(true);
when(ai.getTeamDefinitionInherited()).thenReturn(teamDef);
when(ai.getTeamDefinition()).thenReturn(teamDef);
+ when(services.getReviewService()).thenReturn(reviewService);
}
@Test
public void testGetColumnText() throws Exception {
- TeamColumn utility = new TeamColumn(reviewService);
+ TeamColumn utility = new TeamColumn(services);
Assert.assertEquals(TEAM_NAME, utility.getColumnText(teamWf));
Assert.assertEquals(TEAM_NAME, utility.getColumnText(review));

Back to the top