Class CapturedEventAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<CapturedEventAssert,@Nullable CapturedEventSnapshot>
nl.pim16aap2.lightkeeper.framework.assertions.CapturedEventAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<CapturedEventAssert,,CapturedEventSnapshot> org.assertj.core.api.Descriptable<CapturedEventAssert>,org.assertj.core.api.ExtensionPoints<CapturedEventAssert,CapturedEventSnapshot>
public final class CapturedEventAssert
extends org.assertj.core.api.AbstractAssert<CapturedEventAssert,@Nullable CapturedEventSnapshot>
Frozen event assertions that preserve typed fields and distinguish absent from explicit-null values.
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
info, throwUnsupportedExceptionOnEquals -
Method Summary
Modifier and TypeMethodDescriptiondoesNotHaveField(String accessorName) Checks that an accessor is absent from the capture.Checks whether an accessor was captured, including explicit-null and dropped values.Selects a captured typed value, retaining the event class and accessor in diagnostics.Methods inherited from class org.assertj.core.api.AbstractAssert
actual, asInstanceOf, asList, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Method Details
-
hasField
Checks whether an accessor was captured, including explicit-null and dropped values.- Parameters:
accessorName- Exact captured accessor name.- Returns:
- This assertion.
-
doesNotHaveField
Checks that an accessor is absent from the capture.- Parameters:
accessorName- Exact captured accessor name.- Returns:
- This assertion.
-
value
Selects a captured typed value, retaining the event class and accessor in diagnostics.- Parameters:
accessorName- Exact accessor name; missing accessors fail rather than becoming null.- Returns:
- Frozen typed-value assertions.
-
isCancelled
- Returns:
- This assertion after checking a present boolean cancellation field is true.
-
isNotCancelled
- Returns:
- This assertion after checking a present boolean cancellation field is false.
-