Skip to content

Commit

Permalink
test case fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakarora3 committed Jun 18, 2024
1 parent 0849d48 commit d0a0bd4
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<groupId>com.americanexpress.unify.flowret</groupId>
<artifactId>unify-flowret</artifactId>
<version>1.7.1</version>
<version>1.7.2</version>
<packaging>jar</packaging>

<name>unify-flowret</name>
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Flowret is available as a jar file in Maven central with the following Maven coo
````pom
<groupId>com.americanexpress.unify.flowret</groupId>
<artifactId>unify-flowret</artifactId>
<version>1.7.1</version>
<version>1.7.2</version>
````

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ public synchronized static RouteResponse getResponse(String stepName) {
return r;
}

public synchronized static void clear() {
actions.clear();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected static void beforeAll() {
protected void beforeEach() {
TestManager.reset();
StepResponseFactory.clear();
RouteResponseFactory.clear();
}

public static void setScenario1() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected static void beforeAll() {
protected void beforeEach() {
TestManager.reset();
StepResponseFactory.clear();
RouteResponseFactory.clear();
}

public static void setScenario1() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected static void beforeAll() {
protected void beforeEach() {
TestManager.reset();
StepResponseFactory.clear();
RouteResponseFactory.clear();
}

// happy path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d0a0bd4

Please sign in to comment.