Class StateMachineAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<StateMachineAssert,StateMachine<?,?>>
org.springframework.statemachine.test.assertj.StateMachineAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<StateMachineAssert,StateMachine<?,?>>, org.assertj.core.api.Descriptable<StateMachineAssert>, org.assertj.core.api.ExtensionPoints<StateMachineAssert,StateMachine<?,?>>

public class StateMachineAssert extends org.assertj.core.api.AbstractAssert<StateMachineAssert,StateMachine<?,?>>
Assertions applicable to a StateMachine.
  • Field Summary

    Fields inherited from class org.assertj.core.api.AbstractAssert

    actual, info, myself, objects, throwUnsupportedExceptionOnEquals
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new state machine assert.
  • Method Summary

    Modifier and Type
    Method
    Description
    Verifies that the actual machine does not have a state.
    Verifies that the actual machine has the same state id as given id.

    Methods inherited from class org.assertj.core.api.AbstractAssert

    areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.assertj.core.api.Descriptable

    as, as, as, describedAs
  • Constructor Details

    • StateMachineAssert

      public StateMachineAssert(StateMachine<?,?> actual)
      Instantiates a new state machine assert.
      Parameters:
      actual - the actual
  • Method Details

    • hasStateId

      public StateMachineAssert hasStateId(Object id)
      Verifies that the actual machine has the same state id as given id.
      Parameters:
      id - the expected state id
      Returns:
      this assertion object.
      Throws:
      AssertionError - if the target id of the actual context is not equal to the given one.
    • doesNotHaveState

      public StateMachineAssert doesNotHaveState()
      Verifies that the actual machine does not have a state.
      Returns:
      this assertion object.
      Throws:
      AssertionError - if the machine has a state