diff --git a/pom.xml b/pom.xml index 7882769..e058abc 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ com.americanexpress.unify.flowret unify-flowret - 1.7.1 + 1.7.2 jar unify-flowret diff --git a/readme.md b/readme.md index e08e8ab..8c030cc 100644 --- a/readme.md +++ b/readme.md @@ -20,7 +20,7 @@ Flowret is available as a jar file in Maven central with the following Maven coo ````pom com.americanexpress.unify.flowret unify-flowret -1.7.1 +1.7.2 ```` --- diff --git a/src/test/java/com/americanexpress/unify/flowret/RouteResponseFactory.java b/src/test/java/com/americanexpress/unify/flowret/RouteResponseFactory.java index 8a2eca3..fae5853 100644 --- a/src/test/java/com/americanexpress/unify/flowret/RouteResponseFactory.java +++ b/src/test/java/com/americanexpress/unify/flowret/RouteResponseFactory.java @@ -48,4 +48,8 @@ public synchronized static RouteResponse getResponse(String stepName) { return r; } + public synchronized static void clear() { + actions.clear(); + } + } diff --git a/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel.java b/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel.java index cbe07dc..48eb484 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel.java @@ -49,6 +49,7 @@ protected static void beforeAll() { protected void beforeEach() { TestManager.reset(); StepResponseFactory.clear(); + RouteResponseFactory.clear(); } private static void init(FlowretDao dao, ProcessComponentFactory factory, EventHandler handler, ISlaQueueManager sqm) { diff --git a/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel1.java b/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel1.java index e3fb50e..6a73cc5 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel1.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel1.java @@ -49,6 +49,7 @@ protected static void beforeAll() { protected void beforeEach() { TestManager.reset(); StepResponseFactory.clear(); + RouteResponseFactory.clear(); } private static void init(FlowretDao dao, ProcessComponentFactory factory, EventHandler handler, ISlaQueueManager sqm) { diff --git a/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel2.java b/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel2.java index 6bce28c..091e99b 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel2.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallel2.java @@ -49,6 +49,7 @@ protected static void beforeAll() { protected void beforeEach() { TestManager.reset(); StepResponseFactory.clear(); + RouteResponseFactory.clear(); } // 3 branches, happy path i.e. all branches proceed diff --git a/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallelInParallel.java b/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallelInParallel.java index 6078087..b289483 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallelInParallel.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_parallel/TestFlowretParallelInParallel.java @@ -50,6 +50,7 @@ protected static void beforeAll() { protected void beforeEach() { TestManager.reset(); StepResponseFactory.clear(); + RouteResponseFactory.clear(); } public static void setScenario1() { diff --git a/src/test/java/com/americanexpress/unify/flowret/test_parallel_dyn/TestFlowretParallelDynamic.java b/src/test/java/com/americanexpress/unify/flowret/test_parallel_dyn/TestFlowretParallelDynamic.java index 26a0cbf..e902688 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_parallel_dyn/TestFlowretParallelDynamic.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_parallel_dyn/TestFlowretParallelDynamic.java @@ -47,6 +47,7 @@ protected static void beforeAll() { protected void beforeEach() { TestManager.reset(); StepResponseFactory.clear(); + RouteResponseFactory.clear(); } public static void setScenario1() { diff --git a/src/test/java/com/americanexpress/unify/flowret/test_parallel_in_dyn_parallel/TestFlowretPidp.java b/src/test/java/com/americanexpress/unify/flowret/test_parallel_in_dyn_parallel/TestFlowretPidp.java index 107700d..5b45220 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_parallel_in_dyn_parallel/TestFlowretPidp.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_parallel_in_dyn_parallel/TestFlowretPidp.java @@ -48,6 +48,7 @@ protected static void beforeAll() { protected void beforeEach() { TestManager.reset(); StepResponseFactory.clear(); + RouteResponseFactory.clear(); } // happy path diff --git a/src/test/java/com/americanexpress/unify/flowret/test_singular/TestFlowret.java b/src/test/java/com/americanexpress/unify/flowret/test_singular/TestFlowret.java index 29c31a1..b6b545a 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_singular/TestFlowret.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_singular/TestFlowret.java @@ -55,6 +55,7 @@ protected static void beforeAll() { protected void beforeEach() { TestManager.reset(); StepResponseFactory.clear(); + RouteResponseFactory.clear(); } private static void init(FlowretDao dao, ProcessComponentFactory factory, EventHandler handler, ISlaQueueManager sqm) { diff --git a/src/test/java/com/americanexpress/unify/flowret/test_singular/TestFlowretReopen.java b/src/test/java/com/americanexpress/unify/flowret/test_singular/TestFlowretReopen.java index a09741b..ae2265f 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_singular/TestFlowretReopen.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_singular/TestFlowretReopen.java @@ -50,6 +50,7 @@ protected static void beforeAll() { protected void beforeEach() { TestManager.reset(); StepResponseFactory.clear(); + RouteResponseFactory.clear(); } private static void init(FlowretDao dao, ProcessComponentFactory factory, EventHandler handler, ISlaQueueManager sqm) { diff --git a/src/test/java/com/americanexpress/unify/flowret/test_singular/TestSampleProgram.java b/src/test/java/com/americanexpress/unify/flowret/test_singular/TestSampleProgram.java index 91c26a2..229c3d7 100644 --- a/src/test/java/com/americanexpress/unify/flowret/test_singular/TestSampleProgram.java +++ b/src/test/java/com/americanexpress/unify/flowret/test_singular/TestSampleProgram.java @@ -37,6 +37,7 @@ public static void main(String[] args) { ERRORS_FLOWRET.load(); Flowret.init(10, 30000, "-"); StepResponseFactory.clear(); + RouteResponseFactory.clear(); // foo1("test_journey_wms"); // foo2("test_journey_wms");