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
ConstructorDescriptionStateMachineAssert
(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 id
as givenid
.Methods inherited from class org.assertj.core.api.AbstractAssert
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, 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
Instantiates a new state machine assert.- Parameters:
actual
- the actual
-
-
Method Details
-
hasStateId
Verifies that the actual machine has the samestate id
as givenid
.- 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
Verifies that the actual machine does not have a state.- Returns:
this
assertion object.- Throws:
AssertionError
- if the machine has a state
-