static org.assertj.core.api.Condition<Event> |
EventConditions.abortedWithReason(org.assertj.core.api.Condition<java.lang.Throwable>... conditions) |
Create a new Condition that matches if and only if an
Event's type is
EventType.FINISHED and its
result has a
status of
ABORTED as well as a
cause that matches all of
the supplied conditions.
|
org.assertj.core.api.ListAssert<Event> |
Events.assertThatEvents() |
Shortcut for org.assertj.core.api.Assertions.assertThat(events.list()).
|
static <T> java.util.function.Predicate<Event> |
Event.byPayload(java.lang.Class<T> payloadType,
java.util.function.Predicate<? super T> payloadPredicate) |
Create a Predicate for events whose payload
types match the supplied payloadType and whose payloads match the
supplied payloadPredicate.
|
static java.util.function.Predicate<Event> |
Event.byTestDescriptor(java.util.function.Predicate<? super org.junit.platform.engine.TestDescriptor> testDescriptorPredicate) |
Create a Predicate for events whose
TestDescriptors match the supplied
testDescriptorPredicate.
|
static java.util.function.Predicate<Event> |
Event.byType(EventType type) |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.container() |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.container(java.lang.Class<?> clazz) |
Create a new Condition that matches if and only if an
Event's test descriptor is
a container and its
unique id contains the
fully qualified name of the supplied Class.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.container(java.lang.String uniqueIdSubstring) |
Create a new Condition that matches if and only if an
Event's test descriptor is
a container and its
unique id contains the supplied
String.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.container(org.assertj.core.api.Condition<Event> condition) |
Create a new Condition that matches if and only if an
Event matches the supplied Condition and its
test descriptor is a
container.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.displayName(java.lang.String displayName) |
Create a new Condition that matches if and only if the
display name of an
Event's test descriptor
is equal to the supplied String.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.dynamicTestRegistered(java.lang.String uniqueIdSubstring) |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.dynamicTestRegistered(org.assertj.core.api.Condition<Event> condition) |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.engine() |
Create a new Condition that matches if and only if an
Event's test descriptor is
an instance of EngineDescriptor.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.event(org.assertj.core.api.Condition<? super Event>... conditions) |
Create a new Condition that matches if and only if an
Event matches all of the supplied conditions.
|
private java.util.stream.Stream<Event> |
Events.eventsByType(EventType type) |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.fileEntry(java.util.function.Predicate<org.junit.platform.engine.reporting.FileEntry> predicate) |
Create a new Condition that matches if and only if an
Event's payload is an instance of
FileEntry that contains a file that matches the supplied
Predicate.
|
java.util.stream.Stream<Event> |
Events.filter(java.util.function.Predicate<? super Event> predicate) |
Shortcut for events.stream().filter(predicate).
|
private static java.util.stream.Stream<Event> |
EngineExecutionResults.filterEvents(java.util.List<Event> events,
java.util.function.Predicate<? super org.junit.platform.engine.TestDescriptor> predicate) |
Filter the supplied list of events using the supplied predicate.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.finished(org.assertj.core.api.Condition<org.junit.platform.engine.TestExecutionResult> resultCondition) |
Create a new Condition that matches if and only if an
Event's type is
EventType.FINISHED and its
payload is an instance of
TestExecutionResult that matches the supplied Condition.
|
private java.util.stream.Stream<Event> |
Events.finishedEventsByStatus(org.junit.platform.engine.TestExecutionResult.Status status) |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.finishedSuccessfully() |
|
private static org.assertj.core.api.Condition<Event> |
EventConditions.finishedWithCause(org.junit.platform.engine.TestExecutionResult.Status expectedStatus,
org.assertj.core.api.Condition<java.lang.Throwable>... conditions) |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.finishedWithFailure() |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.finishedWithFailure(org.assertj.core.api.Condition<java.lang.Throwable>... conditions) |
Create a new Condition that matches if and only if an
Event's type is
EventType.FINISHED and its
result has a
status of
FAILED as well as a
cause that matches all of
the supplied Conditions.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.legacyReportingName(java.lang.String legacyReportingName) |
Create a new Condition that matches if and only if the
TestDescriptor.getLegacyReportingName() () legacy reporting name}
of an Event's test descriptor
is equal to the supplied String.
|
java.util.List<Event> |
Events.list() |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.nestedContainer(java.lang.Class<?> clazz) |
Create a new Condition that matches if and only if an
Event's test descriptor is
a container and its
unique id contains the
simple names of the supplied Class and all of its
enclosing classes.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.nestedContainer(java.lang.Class<?> clazz,
org.assertj.core.api.Condition<Event> condition) |
Create a new Condition that matches if and only if an
Event matches the supplied Condition, its
test descriptor is
a container, and its
unique id contains the
simple names of the supplied Class and all of its
enclosing classes.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.reason(java.lang.String expectedReason) |
Create a new Condition that matches if and only if an
Event's payload is an instance of
String that is equal to the supplied value.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.reason(java.util.function.Predicate<java.lang.String> predicate) |
Create a new Condition that matches if and only if an
Event's payload is an instance of
String that matches the supplied Predicate.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.reportEntry(java.util.Map<java.lang.String,java.lang.String> keyValuePairs) |
Create a new Condition that matches if and only if an
Event's payload is an instance of
ReportEntry that contains the supplied key-value pairs.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.result(org.assertj.core.api.Condition<org.junit.platform.engine.TestExecutionResult> condition) |
Create a new Condition that matches if and only if an
Event's payload is an instance of
TestExecutionResult that matches the supplied Condition.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.skippedWithReason(java.lang.String expectedReason) |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.skippedWithReason(java.util.function.Predicate<java.lang.String> predicate) |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.started() |
|
java.util.stream.Stream<Event> |
Events.stream() |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.test() |
|
static org.assertj.core.api.Condition<Event> |
EventConditions.test(java.lang.String uniqueIdSubstring) |
Create a new Condition that matches if and only if an
Event's test descriptor is
a test and its
unique id contains the supplied
String.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.test(java.lang.String uniqueIdSubstring,
java.lang.String displayName) |
Create a new Condition that matches if and only if an
Event's test descriptor is
a test, its
unique id contains the supplied
String, and its display name equals the supplied String.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.test(org.assertj.core.api.Condition<Event> condition) |
Create a new Condition that matches if and only if an
Event matches the supplied Condition and its
test descriptor is a
test.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.type(EventType expectedType) |
Create a new Condition that matches if and only if an
Event's type is equal to the
supplied EventType.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.uniqueId(java.lang.String uniqueId) |
Create a new Condition that matches if and only if the
unique id of an Event's
test descriptor is equal to the
UniqueId parsed from the supplied String.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.uniqueId(org.assertj.core.api.Condition<? super org.junit.platform.engine.UniqueId> condition) |
Create a new Condition that matches if and only if the
unique id of an Event's
test descriptor matches the
supplied Condition.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.uniqueId(org.junit.platform.engine.UniqueId uniqueId) |
Create a new Condition that matches if and only if the
unique id of an Event's
test descriptor is equal to the
supplied UniqueId.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.uniqueIdSubstring(java.lang.String uniqueIdSubstring) |
Create a new Condition that matches if and only if the
unique id of an
Event's test descriptor
contains the supplied String.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.uniqueIdSubstrings(java.lang.String... uniqueIdSubstrings) |
Create a new Condition that matches if and only if the
unique id of an
Event's test descriptor
contains all of the supplied strings.
|
static org.assertj.core.api.Condition<Event> |
EventConditions.uniqueIdSubstrings(java.util.List<java.lang.String> uniqueIdSubstrings) |
Create a new Condition that matches if and only if the
unique id of an
Event's test descriptor
contains all of the supplied strings.
|