S - the type of stateE - the type of eventpublic class StateMachineTestPlanBuilder<S,E>
extends java.lang.Object
StateMachineTestPlan.| Modifier and Type | Class and Description |
|---|---|
class |
StateMachineTestPlanBuilder.StateMachineTestPlanStepBuilder
Builder for individual plan steps.
|
| Constructor and Description |
|---|
StateMachineTestPlanBuilder() |
| Modifier and Type | Method and Description |
|---|---|
StateMachineTestPlan<S,E> |
build()
Builds the state machine test plan.
|
static <S,E> StateMachineTestPlanBuilder<S,E> |
builder()
Gets a new instance of this builder.
|
StateMachineTestPlanBuilder<S,E> |
defaultAwaitTime(int seconds)
Sets default await time.
|
StateMachineTestPlanBuilder<S,E> |
stateMachine(StateMachine<S,E> stateMachine)
Associate a state machine with this builder.
|
StateMachineTestPlanBuilder<S,E> |
stateMachine(StateMachine<S,E> stateMachine,
java.lang.Object machineId)
Associate a state machine with this builder.
|
StateMachineTestPlanBuilder.StateMachineTestPlanStepBuilder |
step()
Gets a new step builder.
|
public static <S,E> StateMachineTestPlanBuilder<S,E> builder()
S - the type of stateE - the type of eventpublic StateMachineTestPlanBuilder<S,E> stateMachine(StateMachine<S,E> stateMachine)
stateMachine - the state machinepublic StateMachineTestPlanBuilder<S,E> stateMachine(StateMachine<S,E> stateMachine, java.lang.Object machineId)
stateMachine - the state machinemachineId - the machine id to use for sendingpublic StateMachineTestPlanBuilder<S,E> defaultAwaitTime(int seconds)
seconds - the default await time in secondspublic StateMachineTestPlanBuilder.StateMachineTestPlanStepBuilder step()
public StateMachineTestPlan<S,E> build()