public class StateContextAssert extends org.assertj.core.api.AbstractAssert<StateContextAssert,StateContext<?,?>>
StateContext.| Constructor and Description |
|---|
StateContextAssert(StateContext<?,?> actual)
Instantiates a new state context assert.
|
| Modifier and Type | Method and Description |
|---|---|
StateContextAssert |
doesNotHaveSource()
Verifies that the actual context does not have a source.
|
StateContextAssert |
doesNotHaveTarget()
Verifies that the actual context does not have a target.
|
StateContextAssert |
hasEvent(java.lang.Object event)
Verifies that the actual context has the same
event as given event. |
StateContextAssert |
hasSourceId(java.lang.Object id)
Verifies that the actual context has the same
source id as given id. |
StateContextAssert |
hasStage(StateContext.Stage stage)
Verifies that the actual context has the same
StateContext.Stage as given StateContext.Stage. |
StateContextAssert |
hasTargetId(java.lang.Object id)
Verifies that the actual context has the same
target id as given id. |
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, withThreadDumpOnErrorpublic StateContextAssert(StateContext<?,?> actual)
actual - the actual state contextpublic StateContextAssert hasStage(StateContext.Stage stage)
StateContext.Stage as given StateContext.Stage.stage - the expected stagethis assertion object.java.lang.AssertionError - if the stage of the actual context is not equal to the given one.public StateContextAssert hasEvent(java.lang.Object event)
event as given event.event - the expected eventthis assertion object.java.lang.AssertionError - if the stage of the actual context is not equal to the given one.public StateContextAssert hasSourceId(java.lang.Object id)
source id as given id.id - the expected source idthis assertion object.java.lang.AssertionError - if the source id of the actual context is not equal to the given one.public StateContextAssert doesNotHaveSource()
this assertion object.java.lang.AssertionError - if the machine has a sourcepublic StateContextAssert hasTargetId(java.lang.Object id)
target id as given id.id - the expected target idthis assertion object.java.lang.AssertionError - if the target id of the actual context is not equal to the given one.public StateContextAssert doesNotHaveTarget()
this assertion object.java.lang.AssertionError - if the machine has a target