Class EventCaptureAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<EventCaptureAssert,@Nullable EventCaptureHandle>
nl.pim16aap2.lightkeeper.framework.assertions.EventCaptureAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<EventCaptureAssert,,EventCaptureHandle> org.assertj.core.api.Descriptable<EventCaptureAssert>,org.assertj.core.api.ExtensionPoints<EventCaptureAssert,EventCaptureHandle>
public final class EventCaptureAssert
extends org.assertj.core.api.AbstractAssert<EventCaptureAssert,@Nullable EventCaptureHandle>
Eager, non-consuming assertions over a live event capture buffer.
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
info, throwUnsupportedExceptionOnEquals -
Method Summary
Modifier and TypeMethodDescriptionorg.assertj.core.api.ListAssert<CapturedEventSnapshot> events()hasEventCount(int expected) Checks the number of events since registration or the last explicit clear.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
-
hasEventCount
Checks the number of events since registration or the last explicit clear.- Parameters:
expected- Nonnegative captured-event count.- Returns:
- This assertion.
-
hasNoEvents
- Returns:
- This assertion after checking that no events have been captured so far.
-
events
- Returns:
- A frozen list of captured events; recreate navigation inside retries.
-