Class StateMachineAsserts

java.lang.Object
org.springframework.statemachine.test.assertj.StateMachineAsserts

public class StateMachineAsserts extends Object
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 Details

    • StateMachineAsserts

      public StateMachineAsserts()
  • Method Details

    • assertThat

      public static StateContextAssert assertThat(org.springframework.statemachine.StateContext<?,?> stateContext)
      Creates a new instance of StateContextAssert allowing to perform assertions on it.
      Parameters:
      stateContext - the state context
      Returns:
      the created assertion object.
    • assertThat

      public static StateMachineAssert assertThat(org.springframework.statemachine.StateMachine<?,?> stateMachine)
      Creates a new instance of StateMachineAssert allowing to perform assertions on it.
      Parameters:
      stateMachine - the state machine
      Returns:
      the created assertion object.
    • assertThat

      public static StateMachineEventResultAssert assertThat(org.springframework.statemachine.StateMachineEventResult<?,?> stateMachineEventResult)
      Creates a new instance of StateMachineEventResultAssert allowing to perform assertions on it.
      Parameters:
      stateMachineEventResult - the state machine event result
      Returns:
      the created assertion object.