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
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, 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 Condition<Event>
EventConditions. abortedWithReason(Condition<Throwable>... conditions)
ListAssert<Event>
Events. assertThatEvents()
Shortcut fororg.assertj.core.api.Assertions.assertThat(events.list())
.static <T> Predicate<Event>
Event. byPayload(Class<T> payloadType, Predicate<? super T> payloadPredicate)
static Predicate<Event>
Event. byTestDescriptor(Predicate<? super TestDescriptor> testDescriptorPredicate)
static Predicate<Event>
Event. byType(EventType type)
static Condition<Event>
EventConditions. container()
static Condition<Event>
EventConditions. container(Class<?> clazz)
static Condition<Event>
EventConditions. container(String uniqueIdSubstring)
static Condition<Event>
EventConditions. container(Condition<Event> condition)
Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a container.static 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 Condition<Event>
EventConditions. dynamicTestRegistered(String uniqueIdSubstring)
static Condition<Event>
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
.static Condition<Event>
EventConditions. engine()
Create a newCondition
that matches if and only if anEvent
's test descriptor is an instance ofEngineDescriptor
.static Condition<Event>
EventConditions. event(Condition<? super Event>... conditions)
Stream<Event>
Events. filter(Predicate<? super Event> predicate)
Shortcut forevents.stream().filter(predicate)
.static Condition<Event>
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
.static 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
.static Condition<Event>
EventConditions. finishedWithFailure()
static Condition<Event>
EventConditions. finishedWithFailure(Condition<Throwable>... conditions)
List<Event>
Events. list()
static 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 Condition<Event>
EventConditions. reason(String expectedReason)
static Condition<Event>
EventConditions. reason(Predicate<String> predicate)
static 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 Condition<Event>
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
.static Condition<Event>
EventConditions. skippedWithReason(String expectedReason)
static Condition<Event>
EventConditions. skippedWithReason(Predicate<String> predicate)
static Condition<Event>
EventConditions. started()
Stream<Event>
Events. stream()
static Condition<Event>
EventConditions. test()
static Condition<Event>
EventConditions. test(String uniqueIdSubstring)
static Condition<Event>
EventConditions. test(String uniqueIdSubstring, 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 Condition<Event>
EventConditions. type(EventType expectedType)
static 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 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 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 Event Modifier and Type Method Description static Condition<Event>
EventConditions. container(Condition<Event> condition)
Create a newCondition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a container.static Condition<Event>
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
.Stream<Event>
Events. filter(Predicate<? super Event> predicate)
Shortcut forevents.stream().filter(predicate)
.<R> Stream<R>
Events. map(Function<? super Event,? extends R> mapper)
Shortcut forevents.stream().map(mapper)
.
-