Uses of Class
org.junit.platform.testkit.engine.Event
Packages that use Event
Package
Description
Test Kit for testing the execution of a
TestEngine
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 EventMethods in org.junit.platform.testkit.engine that return EventModifier and TypeMethodDescriptionstatic 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, String reason) static Event
Event.executionStarted
(TestDescriptor testDescriptor) Create a startedEvent
for the suppliedTestDescriptor
.private static Event
Events.findEvent
(List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition) static Event
Event.reportingEntryPublished
(TestDescriptor testDescriptor, ReportEntry entry) Methods in org.junit.platform.testkit.engine that return types with arguments of type EventModifier and TypeMethodDescriptionstatic org.assertj.core.api.Condition
<Event> EventConditions.abortedWithReason
(org.assertj.core.api.Condition<Throwable>... conditions) org.assertj.core.api.ListAssert
<Event> Events.assertThatEvents()
Shortcut fororg.assertj.core.api.Assertions.assertThat(events.list())
.Event.byTestDescriptor
(Predicate<? super TestDescriptor> testDescriptorPredicate) static org.assertj.core.api.Condition
<Event> EventConditions.container()
static org.assertj.core.api.Condition
<Event> 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> 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> 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
(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
(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> Create a newCondition
that matches if and only if anEvent
matches all of the supplied conditions.Events.eventsByType
(EventType type) Shortcut forevents.stream().filter(predicate)
.EngineExecutionResults.filterEvents
(List<Event> events, 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
.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<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<Throwable>... conditions) Events.list()
static org.assertj.core.api.Condition
<Event> EventConditions.nestedContainer
(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.nestedContainer
(Class<?> clazz, org.assertj.core.api.Condition<Event> condition) Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
, its 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> static org.assertj.core.api.Condition
<Event> static org.assertj.core.api.Condition
<Event> EventConditions.reportEntry
(Map<String, String> keyValuePairs) Create a newCondition
that matches if and only if anEvent
's payload is an instance ofReportEntry
that contains the supplied key-value pairs.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
(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
(Predicate<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()
Events.stream()
static org.assertj.core.api.Condition
<Event> EventConditions.test()
static org.assertj.core.api.Condition
<Event> 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> 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> Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a test.static org.assertj.core.api.Condition
<Event> static org.assertj.core.api.Condition
<Event> EventConditions.uniqueIdSubstring
(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
(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
(List<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 EventModifier and TypeMethodDescriptionprivate static void
Events.assertEventsMatchExactly
(List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions) private static void
Events.assertEventsMatchLoosely
(List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions) private static void
Events.assertEventsMatchLooselyInOrder
(List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions) private static void
Events.checkCondition
(List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition) private static void
Events.checkCondition
(List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition) static org.assertj.core.api.Condition
<Event> Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a container.Executions.createExecutions
(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
.Shortcut forevents.stream().filter(predicate)
.EngineExecutionResults.filterEvents
(List<Event> events, Predicate<? super TestDescriptor> predicate) Filter the supplied list of events using the supplied predicate.private static Event
Events.findEvent
(List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition) private static Event
Events.findEvent
(List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition) <R> Stream
<R> Shortcut forevents.stream().map(mapper)
.static org.assertj.core.api.Condition
<Event> EventConditions.nestedContainer
(Class<?> clazz, org.assertj.core.api.Condition<Event> condition) Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
, its 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> Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a test.Constructor parameters in org.junit.platform.testkit.engine with type arguments of type EventModifierConstructorDescription(package private)
EngineExecutionResults
(List<Event> events) ConstructEngineExecutionResults
from the supplied list of recorded events.(package private)
(package private)
(package private)
Executions
(List<Event> events, String category)