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
ConstructorsConstructorDescriptionStateMachineAssert(StateMachine<?, ?> actual) Instantiates a new state machine assert. -
Method Summary
Modifier and TypeMethodDescriptionVerifies that the actual machine does not have a state.hasStateId(Object id) Verifies that the actual machine has the samestate idas givenid.Methods inherited from class org.assertj.core.api.AbstractAssert
actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
StateMachineAssert
Instantiates a new state machine assert.- Parameters:
actual- the actual
-
-
Method Details
-
hasStateId
Verifies that the actual machine has the samestate idas givenid.- Parameters:
id- the expected state id- Returns:
thisassertion object.- Throws:
AssertionError- if the target id of the actual context is not equal to the given one.
-
doesNotHaveState
Verifies that the actual machine does not have a state.- Returns:
thisassertion object.- Throws:
AssertionError- if the machine has a state
-