Class StateMachineAsserts
java.lang.Object
org.springframework.statemachine.test.assertj.StateMachineAsserts
Entry point for all
assertj
definitions for a StateMachine
.
NOTE: we build assertj features here in core tests before moving them into spring-statemachine-test.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StateContextAssert
assertThat
(StateContext<?, ?> stateContext) Creates a new instance ofStateContextAssert
allowing to perform assertions on it.static StateMachineAssert
assertThat
(StateMachine<?, ?> stateMachine) Creates a new instance ofStateMachineAssert
allowing to perform assertions on it.assertThat
(StateMachineEventResult<?, ?> stateMachineEventResult) Creates a new instance ofStateMachineEventResultAssert
allowing to perform assertions on it.
-
Constructor Details
-
StateMachineAsserts
public StateMachineAsserts()
-
-
Method Details
-
assertThat
Creates a new instance ofStateContextAssert
allowing to perform assertions on it.- Parameters:
stateContext
- the state context- Returns:
- the created assertion object.
-
assertThat
Creates a new instance ofStateMachineAssert
allowing to perform assertions on it.- Parameters:
stateMachine
- the state machine- Returns:
- the created assertion object.
-
assertThat
public static StateMachineEventResultAssert assertThat(StateMachineEventResult<?, ?> stateMachineEventResult) Creates a new instance ofStateMachineEventResultAssert
allowing to perform assertions on it.- Parameters:
stateMachineEventResult
- the state machine event result- Returns:
- the created assertion object.
-