Uses of Class
org.junit.platform.testkit.engine.Event
-
Packages that use Event Package Description org.junit.platform.testkit.engine Test Kit for testing the execution of aTestEngine
running on the JUnit Platform. -
-
Uses of Event in org.junit.platform.testkit.engine
Fields in org.junit.platform.testkit.engine with type parameters of type Event Modifier and Type Field Description private java.util.List<Event>
Events. events
private java.util.List<Event>
ExecutionRecorder. events
Methods in org.junit.platform.testkit.engine that return Event Modifier and Type Method Description static Event
Event. dynamicTestRegistered(TestDescriptor testDescriptor)
Create anEvent
for the dynamic registration of the suppliedTestDescriptor
.static Event
Event. executionFinished(TestDescriptor testDescriptor, TestExecutionResult result)
static Event
Event. executionSkipped(TestDescriptor testDescriptor, java.lang.String reason)
static Event
Event. executionStarted(TestDescriptor testDescriptor)
Create a startedEvent
for the suppliedTestDescriptor
.static Event
Event. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)
Methods in org.junit.platform.testkit.engine that return types with arguments of type Event Modifier and Type Method Description static org.assertj.core.api.Condition<Event>
EventConditions. abortedWithReason(org.assertj.core.api.Condition<java.lang.Throwable>... conditions)
org.assertj.core.api.ListAssert<Event>
Events. assertThatEvents()
Shortcut fororg.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 aPredicate
for events whose payload types match the suppliedpayloadType
and whose payloads match the suppliedpayloadPredicate
.static java.util.function.Predicate<Event>
Event. byTestDescriptor(java.util.function.Predicate<? super TestDescriptor> 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 newCondition
that matches if and only if anEvent
's test descriptor is a container and its unique id contains the fully-qualified name of the suppliedClass
.static org.assertj.core.api.Condition<Event>
EventConditions. container(java.lang.String uniqueIdSubstring)
Create a newCondition
that matches if and only if anEvent
's test descriptor is a container and its unique id contains the suppliedString
.static org.assertj.core.api.Condition<Event>
EventConditions. container(org.assertj.core.api.Condition<Event> condition)
Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a container.static org.assertj.core.api.Condition<Event>
EventConditions. displayName(java.lang.String displayName)
Create a newCondition
that matches if and only if the display name of anEvent
's test descriptor is equal to the suppliedString
.static org.assertj.core.api.Condition<Event>
EventConditions. dynamicTestRegistered(java.lang.String uniqueIdSubstring)
Create a newCondition
that matches if and only if anEvent
's type isEventType.DYNAMIC_TEST_REGISTERED
and its unique id contains the suppliedString
.static org.assertj.core.api.Condition<Event>
EventConditions. dynamicTestRegistered(org.assertj.core.api.Condition<Event> condition)
Create a newCondition
that matches if and only if anEvent
's type isEventType.DYNAMIC_TEST_REGISTERED
and it matches the suppliedCondition
.static org.assertj.core.api.Condition<Event>
EventConditions. engine()
Create a newCondition
that matches if and only if anEvent
's test descriptor is an instance ofEngineDescriptor
.static org.assertj.core.api.Condition<Event>
EventConditions. event(org.assertj.core.api.Condition<? super Event>... conditions)
Create a newCondition
that matches if and only if anEvent
matches all of the supplied conditions.private java.util.stream.Stream<Event>
Events. eventsByType(EventType type)
java.util.stream.Stream<Event>
Events. filter(java.util.function.Predicate<? super Event> predicate)
Shortcut forevents.stream().filter(predicate)
.private static java.util.stream.Stream<Event>
EngineExecutionResults. filterEvents(java.util.List<Event> events, java.util.function.Predicate<? super 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<TestExecutionResult> resultCondition)
Create a newCondition
that matches if and only if anEvent
's type isEventType.FINISHED
and its payload is an instance ofTestExecutionResult
that matches the suppliedCondition
.private java.util.stream.Stream<Event>
Events. finishedEventsByStatus(TestExecutionResult.Status status)
static org.assertj.core.api.Condition<Event>
EventConditions. finishedSuccessfully()
Create a newCondition
that matches if and only if anEvent
's type isEventType.FINISHED
and its result has a status ofSUCCESSFUL
.private static org.assertj.core.api.Condition<Event>
EventConditions. finishedWithCause(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)
java.util.List<Event>
Events. list()
Get the events as aList
.static org.assertj.core.api.Condition<Event>
EventConditions. nestedContainer(java.lang.Class<?> clazz)
Create a newCondition
that matches if and only if anEvent
's test descriptor is a container and its unique id contains the simple names of the suppliedClass
and all of its enclosing classes.static org.assertj.core.api.Condition<Event>
EventConditions. reason(java.lang.String expectedReason)
static org.assertj.core.api.Condition<Event>
EventConditions. reason(java.util.function.Predicate<java.lang.String> predicate)
static org.assertj.core.api.Condition<Event>
EventConditions. result(org.assertj.core.api.Condition<TestExecutionResult> condition)
Create a newCondition
that matches if and only if anEvent
's payload is an instance ofTestExecutionResult
that matches the suppliedCondition
.static org.assertj.core.api.Condition<Event>
EventConditions. skippedWithReason(java.lang.String expectedReason)
Create a newCondition
that matches if and only if anEvent
's type isEventType.SKIPPED
and the reason is equal to the suppliedString
.static org.assertj.core.api.Condition<Event>
EventConditions. skippedWithReason(java.util.function.Predicate<java.lang.String> predicate)
Create a newCondition
that matches if and only if anEvent
's type isEventType.SKIPPED
and the reason matches the suppliedPredicate
.static org.assertj.core.api.Condition<Event>
EventConditions. started()
java.util.stream.Stream<Event>
Events. stream()
Get the events as aStream
.static org.assertj.core.api.Condition<Event>
EventConditions. test()
static org.assertj.core.api.Condition<Event>
EventConditions. test(java.lang.String uniqueIdSubstring)
Create a newCondition
that matches if and only if anEvent
's test descriptor is a test and its unique id contains the suppliedString
.static org.assertj.core.api.Condition<Event>
EventConditions. test(java.lang.String uniqueIdSubstring, java.lang.String displayName)
Create a newCondition
that matches if and only if anEvent
's test descriptor is a test, its unique id contains the suppliedString
, and its display name equals the suppliedString
.static org.assertj.core.api.Condition<Event>
EventConditions. type(EventType expectedType)
static org.assertj.core.api.Condition<Event>
EventConditions. uniqueIdSubstring(java.lang.String uniqueIdSubstring)
Create a newCondition
that matches if and only if the unique id of anEvent
's test descriptor contains the suppliedString
.static org.assertj.core.api.Condition<Event>
EventConditions. uniqueIdSubstrings(java.lang.String... uniqueIdSubstrings)
Create a newCondition
that matches if and only if the unique id of anEvent
'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 newCondition
that matches if and only if the unique id of anEvent
's test descriptor contains all of the supplied strings.Method parameters in org.junit.platform.testkit.engine with type arguments of type Event Modifier and Type Method Description private static void
Events. assertEventsMatchExactly(java.util.List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions)
static org.assertj.core.api.Condition<Event>
EventConditions. container(org.assertj.core.api.Condition<Event> condition)
Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a container.private static java.util.List<Execution>
Executions. createExecutions(java.util.List<Event> events)
Create executions from the supplied list of events.static org.assertj.core.api.Condition<Event>
EventConditions. dynamicTestRegistered(org.assertj.core.api.Condition<Event> condition)
Create a newCondition
that matches if and only if anEvent
's type isEventType.DYNAMIC_TEST_REGISTERED
and it matches the suppliedCondition
.java.util.stream.Stream<Event>
Events. filter(java.util.function.Predicate<? super Event> predicate)
Shortcut forevents.stream().filter(predicate)
.private static java.util.stream.Stream<Event>
EngineExecutionResults. filterEvents(java.util.List<Event> events, java.util.function.Predicate<? super TestDescriptor> predicate)
Filter the supplied list of events using the supplied predicate.<R> java.util.stream.Stream<R>
Events. map(java.util.function.Function<? super Event,? extends R> mapper)
Shortcut forevents.stream().map(mapper)
.Constructor parameters in org.junit.platform.testkit.engine with type arguments of type Event Constructor Description EngineExecutionResults(java.util.List<Event> events)
ConstructEngineExecutionResults
from the supplied list of recorded events.Events(java.util.List<Event> events, java.lang.String category)
Events(java.util.stream.Stream<Event> events, java.lang.String category)
Executions(java.util.List<Event> events, java.lang.String category)
-