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
Methods 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
.static Event
Event.reportingEntryPublished
(TestDescriptor testDescriptor, ReportEntry entry) Methods in org.junit.platform.testkit.engine that return types with arguments of type EventModifier and TypeMethodDescriptionEventConditions.abortedWithReason
(Condition<Throwable>... conditions) Events.assertThatEvents()
Shortcut fororg.assertj.core.api.Assertions.assertThat(events.list())
.Event.byTestDescriptor
(Predicate<? super TestDescriptor> testDescriptorPredicate) EventConditions.container()
Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a container.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
.EventConditions.dynamicTestRegistered
(String uniqueIdSubstring) EventConditions.dynamicTestRegistered
(Condition<Event> condition) Create a newCondition
that matches if and only if anEvent
's type isEventType.DYNAMIC_TEST_REGISTERED
and it matches the suppliedCondition
.EventConditions.engine()
Create a newCondition
that matches if and only if anEvent
's test descriptor is an instance ofEngineDescriptor
.Shortcut forevents.stream().filter(predicate)
.EventConditions.finished
(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
.EventConditions.finishedSuccessfully()
Create a newCondition
that matches if and only if anEvent
's type isEventType.FINISHED
and its result has a status ofSUCCESSFUL
.EventConditions.finishedWithFailure()
EventConditions.finishedWithFailure
(Condition<Throwable>... conditions) Events.list()
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.EventConditions.nestedContainer
(Class<?> clazz, 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.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.EventConditions.result
(Condition<TestExecutionResult> condition) Create a newCondition
that matches if and only if anEvent
's payload is an instance ofTestExecutionResult
that matches the suppliedCondition
.EventConditions.skippedWithReason
(String expectedReason) EventConditions.skippedWithReason
(Predicate<String> predicate) EventConditions.started()
Events.stream()
EventConditions.test()
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
.Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a test.EventConditions.uniqueIdSubstring
(String uniqueIdSubstring) Create a newCondition
that matches if and only if the unique id of anEvent
's test descriptor contains the suppliedString
.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.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 TypeMethodDescriptionCreate a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a container.EventConditions.dynamicTestRegistered
(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)
.<R> Stream<R>
Shortcut forevents.stream().map(mapper)
.EventConditions.nestedContainer
(Class<?> clazz, 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.Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a test.