Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2017-08-09 11:29:13 -0400
committerdonald.g.dunne2017-08-09 11:29:13 -0400
commit3ee57cc1d3d0b0c975952fe72f5b0c57d877af95 (patch)
tree6b4919c37878cd6ce24c34c2d2f08987a372ed0b
parent983057917712b16bf5f66f1c94cd5e2f321874ac (diff)
downloadorg.eclipse.osee-3ee57cc1d3d0b0c975952fe72f5b0c57d877af95.tar.gz
org.eclipse.osee-3ee57cc1d3d0b0c975952fe72f5b0c57d877af95.tar.xz
org.eclipse.osee-3ee57cc1d3d0b0c975952fe72f5b0c57d877af95.zip
bug[ats_TW1630]: ATS transition tests fail intermittently at eclipse.org
-rw-r--r--plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java6
-rw-r--r--plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java5
2 files changed, 8 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java
index f7ba72b9b3..561268a9ce 100644
--- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java
+++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java
@@ -62,7 +62,7 @@ public class DecisionReviewDefinitionManagerTest extends DecisionReviewDefinitio
jaxWorkDef.setName(AtsTestUtil.WORK_DEF_NAME);
jaxWorkDef.setWorkDefDsl(atsDsl);
AtsTestUtil.importWorkDefinition(jaxWorkDef);
- AtsClientService.get().getWorkDefinitionService().clearCaches();
+ AtsClientService.get().clearCaches();
} catch (Exception ex) {
throw new OseeCoreException(ex, "Error importing " + WORK_DEF_FILE_NAME);
}
@@ -108,7 +108,7 @@ public class DecisionReviewDefinitionManagerTest extends DecisionReviewDefinitio
jaxWorkDef.setName(AtsTestUtil.WORK_DEF_NAME);
jaxWorkDef.setWorkDefDsl(atsDsl);
AtsTestUtil.importWorkDefinition(jaxWorkDef);
- AtsClientService.get().getWorkDefinitionService().clearCaches();
+ AtsClientService.get().clearCaches();
} catch (Exception ex) {
throw new OseeCoreException(ex, "Error importing " + WORK_DEF_FILE_NAME_PREPARE);
}
@@ -120,7 +120,7 @@ public class DecisionReviewDefinitionManagerTest extends DecisionReviewDefinitio
MockTransitionHelper helper = new MockTransitionHelper(getClass().getSimpleName(), Arrays.asList(teamArt),
TeamState.Implement.getName(), Arrays.asList(AtsClientService.get().getUserService().getCurrentUser
- ()), null, changes, TransitionOption.None);
+ ()), null, changes, TransitionOption.None);
IAtsTransitionManager transitionMgr = TransitionFactory.getTransitionManager(helper);
TransitionResults results = transitionMgr.handleAllAndPersist();
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java
index 026a9c6df4..bf79cfde56 100644
--- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java
+++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java
@@ -90,6 +90,11 @@ public class TransitionManagerTest {
}
@BeforeClass
+ public static void before() throws OseeCoreException {
+ AtsClientService.get().clearCaches();
+ }
+
+ @BeforeClass
@AfterClass
public static void cleanup() throws OseeCoreException {
AtsTestUtil.cleanup();

Back to the top