Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2015-06-12 15:14:04 -0400
committerjmisinco2015-06-12 15:14:04 -0400
commit76d42fa92415eb6126affac3513de7084826126c (patch)
treefa9af23c14835d640f0b65ac4f8886abc03bba31 /plugins/org.eclipse.osee.ats.core.test
parentc202a9514c59517d3250784264e4e79587830b87 (diff)
downloadorg.eclipse.osee-76d42fa92415eb6126affac3513de7084826126c.tar.gz
org.eclipse.osee-76d42fa92415eb6126affac3513de7084826126c.tar.xz
org.eclipse.osee-76d42fa92415eb6126affac3513de7084826126c.zip
bug[ats_ATS185779]: Convert client WorkflowProvider to OSGI
- Server now has TeamWorkflowProviders through OSGI. This provides them the same way on the client. - Fixes bug introduced by ATS185779 Change-Id: I727fc5115e0eac2d03f5610f08211b0ab037de8f
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/workdef/AtsWorkDefinitionAdminImplTest.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/AtsWorkDefinitionAdminImplTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/AtsWorkDefinitionAdminImplTest.java
index ab9b323195..90695c3344 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/AtsWorkDefinitionAdminImplTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/AtsWorkDefinitionAdminImplTest.java
@@ -23,7 +23,6 @@ import org.eclipse.osee.ats.api.ai.IAtsActionableItem;
import org.eclipse.osee.ats.api.data.AtsAttributeTypes;
import org.eclipse.osee.ats.api.review.IAtsPeerToPeerReview;
import org.eclipse.osee.ats.api.team.IAtsTeamDefinition;
-import org.eclipse.osee.ats.api.team.ITeamWorkflowProviders;
import org.eclipse.osee.ats.api.workdef.IAtsWorkDefinition;
import org.eclipse.osee.ats.api.workdef.IAtsWorkDefinitionAdmin;
import org.eclipse.osee.ats.api.workdef.IAtsWorkDefinitionService;
@@ -33,6 +32,7 @@ import org.eclipse.osee.ats.api.workdef.IWorkDefinitionMatch;
import org.eclipse.osee.ats.api.workflow.IAtsTeamWorkflow;
import org.eclipse.osee.ats.api.workflow.IAtsWorkItemService;
import org.eclipse.osee.ats.core.util.CacheProvider;
+import org.eclipse.osee.ats.core.workflow.ITeamWorkflowProvidersLazy;
import org.eclipse.osee.framework.core.util.XResultData;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.junit.Before;
@@ -43,7 +43,7 @@ import org.mockito.MockitoAnnotations;
/**
* Test case for {@link AtsWorkDefinitionAdminImpl}
- *
+ *
* @author Donald G. Dunne
*/
public class AtsWorkDefinitionAdminImplTest {
@@ -63,10 +63,10 @@ public class AtsWorkDefinitionAdminImplTest {
@Mock IAtsTeamWorkflow teamWf;
@Mock IAtsWorkDefinition defaultPeerToPeerWorkDef;
@Mock IAtsWorkDefinition myPeerToPeerWorkDef;
- @Mock ITeamWorkflowProviders teamWorkflowProviders;
+ @Mock ITeamWorkflowProvidersLazy teamWorkflowProviders;
@Mock CacheProvider<AtsWorkDefinitionCache> cacheProvider;
@Mock IAttributeResolver attributeResolver;
-
+
private AtsWorkDefinitionAdminImpl workDefAmin;
// @formatter:on
@@ -89,7 +89,8 @@ public class AtsWorkDefinitionAdminImplTest {
when(cacheProvider.get()).thenReturn(cache);
workDefAmin =
- new AtsWorkDefinitionAdminImpl(cacheProvider, workItemService, workDefinitionService, attributeResolver);
+ new AtsWorkDefinitionAdminImpl(cacheProvider, workItemService, workDefinitionService, attributeResolver,
+ teamWorkflowProviders);
}
@Test

Back to the top