Make tests more reliable

This commit is contained in:
Janne Valkealahti
2016-05-19 11:13:15 +01:00
parent 6b93760535
commit 588eee751f

View File

@@ -77,6 +77,7 @@ public class StateMachineTests {
.sendEvent("PLACE_ORDER")
.expectStates("CUSTOMER_ERROR")
.expectStateChanged(2)
.expectStateMachineStopped(1)
.and()
.build();
plan.test();
@@ -102,6 +103,7 @@ public class StateMachineTests {
.setHeader("payment", "1000").build())
.expectStates("ORDER_SHIPPED")
.expectStateChanged(4)
.expectStateMachineStopped(3)
.and()
.build();
plan.test();