Class StateMachineTestPlan<S,E>

java.lang.Object
org.springframework.statemachine.test.StateMachineTestPlan<S,E>
Type Parameters:
S - the type of state
E - the type of event

public class StateMachineTestPlan<S,E> extends Object
StateMachineTestPlan is fully constructed plan how a StateMachine should be tested.
  • Constructor Details

    • StateMachineTestPlan

      public StateMachineTestPlan(Map<Object,StateMachine<S,E>> stateMachines, List<org.springframework.statemachine.test.StateMachineTestPlanBuilder.StateMachineTestPlanStep<S,E>> steps, Integer defaultAwaitTime)
      Instantiates a new state machine test plan.
      Parameters:
      stateMachines - the state machines
      steps - the steps
      defaultAwaitTime - the default await time in seconds
  • Method Details

    • test

      public void test() throws Exception
      Run test plan.
      Throws:
      Exception - the exception