Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-05-26 11:35:31 -0400
committerAngel Avila2016-05-26 11:35:31 -0400
commit51e3de704f198fcff9b99654d6ead825691b8f43 (patch)
tree777e39e0a2e9e035e9662484cff5c7f1185d16ab /plugins/org.eclipse.osee.ats.core.test
parent27f17251ca3c22139a3c78173ebb6263e50b0652 (diff)
downloadorg.eclipse.osee-51e3de704f198fcff9b99654d6ead825691b8f43.tar.gz
org.eclipse.osee-51e3de704f198fcff9b99654d6ead825691b8f43.tar.xz
org.eclipse.osee-51e3de704f198fcff9b99654d6ead825691b8f43.zip
refactor: Replace AtsConfigCache with loading cache
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.java8
1 files changed, 2 insertions, 6 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 9e70e6fadd..674aaa6004 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
@@ -33,7 +33,6 @@ import org.eclipse.osee.ats.api.workdef.IWorkDefinitionMatch;
import org.eclipse.osee.ats.api.workflow.IAtsTask;
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;
@@ -68,7 +67,7 @@ public class AtsWorkDefinitionAdminImplTest {
@Mock IAtsWorkDefinition myPeerToPeerWorkDef;
@Mock IAtsWorkDefinition myTaskWorkDef;
@Mock ITeamWorkflowProvidersLazy teamWorkflowProviders;
- @Mock CacheProvider<AtsWorkDefinitionCache> cacheProvider;
+ @Mock AtsWorkDefinitionCache workDefCache;
@Mock IAttributeResolver attributeResolver;
@Mock IAtsTask task;
@Mock IAtsServices services;
@@ -90,11 +89,8 @@ public class AtsWorkDefinitionAdminImplTest {
when(workDefinitionService.getWorkDef(eq(MyPeerToPeerWorkDefId), any(XResultData.class))).thenReturn(
myPeerToPeerWorkDef);
- AtsWorkDefinitionCache cache = new AtsWorkDefinitionCache();
- when(cacheProvider.get()).thenReturn(cache);
-
workDefAmin =
- new AtsWorkDefinitionAdminImpl(cacheProvider, workDefinitionService, attributeResolver, teamWorkflowProviders);
+ new AtsWorkDefinitionAdminImpl(workDefCache, workDefinitionService, attributeResolver, teamWorkflowProviders);
}
@Test

Back to the top