Events is a facade that provides a fluent API for working with
events.
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Events | |
| public final void | assertEventsMatchExactly(Condition<? super Event>...
the conditions to match against; never conditions)nullAssert that all events contained in this |
| private static void | |
| public final void | assertEventsMatchLoosely(Condition<? super Event>...
the conditions to match against; never conditions)nullAssert that all provided conditions are matched by an event
contained in this |
| private static void | |
| public final void | assertEventsMatchLooselyInOrder(Condition<? super Event>...
the conditions to match against; never conditions)nullAssert that all provided conditions are matched by an event
contained in this |
| private static void | |
| public Events | Returns: thisEvents object for method chaining; never nullAssert statistics for the events contained in this
|
| public ListAssert | |
| private static void | |
| public long | |
| public Events | |
| public Events | Returns: thisEvents object for method chaining; never nullthe out)OutputStream to print to; never nullPrint all events to the supplied |
| public Events | |
| private Events | |
| public Events | Returns: the filteredEvents; never nullGet the dynamic registration |
| private Stream | |
| public Executions | Returns: an instance ofExecutions for the current set of events;
never nullGet the |
| public Events | |
| public Events | Returns: the filteredEvents; never nullGet the file entry publication |
| public Stream | |
| private static @Nullable Event | |
| public Events | |
| private Stream | |
| pack-priv String | |
| private static boolean | |
| public List | |
| public <R> Stream | |
| public Events | Returns: the filteredEvents; never nullGet the reporting entry publication |
| public Events | |
| public Events | |
| public Stream | |
| public Events |
| category | back to summary |
|---|---|
| private final String category | |
| events | back to summary |
|---|---|
| private final List<Event> events | |
| Events | back to summary |
|---|---|
| pack-priv Events(Stream<Event> events, String category) | |
| Events | back to summary |
|---|---|
| pack-priv Events(List<Event> events, String category) | |
| aborted | back to summary |
|---|---|
| public Events aborted() Get the aborted
| |
| assertEventsMatchExactly | back to summary |
|---|---|
| public final void assertEventsMatchExactly(Condition<? super Event>... conditions) Assert that all events contained in this Conditions can be imported statically from Example
executionResults.testEvents().assertEventsMatchExactly(
event(test("exampleTestMethod"), started()),
event(test("exampleTestMethod"), finishedSuccessfully())
);
| |
| assertEventsMatchExactly | back to summary |
|---|---|
private static void assertEventsMatchExactly(List<Event> events, Condition<? super Event>... conditions)
| |
| assertEventsMatchLoosely | back to summary |
|---|---|
| public final void assertEventsMatchLoosely(Condition<? super Event>... conditions) Assert that all provided conditions are matched by an event
contained in this Note that this method performs a partial match. Thus, some events may not match any of the provided conditions. Conditions can be imported statically from Example
executionResults.testEvents().assertEventsMatchLoosely(
event(test("exampleTestMethod"), started()),
event(test("exampleTestMethod"), finishedSuccessfully())
);
| |
| assertEventsMatchLoosely | back to summary |
|---|---|
private static void assertEventsMatchLoosely(List<Event> events, Condition<? super Event>... conditions)
| |
| assertEventsMatchLooselyInOrder | back to summary |
|---|---|
| public final void assertEventsMatchLooselyInOrder(Condition<? super Event>... conditions) Assert that all provided conditions are matched by an event
contained in this Note that this method performs a partial match. Thus, some events may not match any of the provided conditions; however, the conditions provided must be in the correct order. Conditions can be imported statically from Example
executionResults.testEvents().assertEventsMatchLooselyInOrder(
event(test("exampleTestMethod"), started()),
event(test("exampleTestMethod"), finishedSuccessfully())
);
| |
| assertEventsMatchLooselyInOrder | back to summary |
|---|---|
private static void assertEventsMatchLooselyInOrder(List<Event> events, Condition<? super Event>... conditions)
| |
| assertStatistics | back to summary |
|---|---|
| public Events assertStatistics(Consumer<EventStatistics> statisticsConsumer) Assert statistics for the events contained in this
Example
| |
| assertThatEvents | back to summary |
|---|---|
| public ListAssert Shortcut for
| |
| checkCondition | back to summary |
|---|---|
| private static void checkCondition(List<Event> events, SoftAssertions softly, Condition<? super Event> condition) | |
| count | back to summary |
|---|---|
| public long count() Get the number of events contained in this | |
| debug | back to summary |
|---|---|
| public Events debug() Print all events to
| |
| debug | back to summary |
|---|---|
| public Events debug(OutputStream out) Print all events to the supplied
| |
| debug | back to summary |
|---|---|
| public Events debug(Writer writer) Print all events to the supplied | |
| debug | back to summary |
|---|---|
| private Events debug(PrintWriter printWriter) | |
| dynamicallyRegistered | back to summary |
|---|---|
| public Events dynamicallyRegistered() Get the dynamic registration
| |
| eventsByType | back to summary |
|---|---|
| private Stream | |
| executions | back to summary |
|---|---|
| public Executions executions() Get the
| |
| failed | back to summary |
|---|---|
| public Events failed() Get the failed
| |
| fileEntryPublished | back to summary |
|---|---|
| public Events fileEntryPublished() Get the file entry publication
| |
| filter | back to summary |
|---|---|
| public Stream Shortcut for | |
| findEvent | back to summary |
|---|---|
| private static @Nullable Event findEvent(List<Event> events, SoftAssertions softly, Condition<? super Event> condition) | |
| finished | back to summary |
|---|---|
| public Events finished() Get the finished
| |
| finishedEventsByStatus | back to summary |
|---|---|
| private Stream | |
| getCategory | back to summary |
|---|---|
| pack-priv String getCategory() | |
| isNotInIncreasingOrder | back to summary |
|---|---|
| private static boolean isNotInIncreasingOrder(List<Integer> indices) | |
| list | back to summary |
|---|---|
| public List | |
| map | back to summary |
|---|---|
| public <R> Stream Shortcut for
| |
| reportingEntryPublished | back to summary |
|---|---|
| public Events reportingEntryPublished() Get the reporting entry publication
| |
| skipped | back to summary |
|---|---|
| public Events skipped() Get the skipped
| |
| started | back to summary |
|---|---|
| public Events started() Get the started
| |
| stream | back to summary |
|---|---|
| public Stream | |
| succeeded | back to summary |
|---|---|
| public Events succeeded() Get the succeeded
| |