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 aTestEnginerunning 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 EventEvent. dynamicTestRegistered(TestDescriptor testDescriptor)Create anEventfor the dynamic registration of the suppliedTestDescriptor.static EventEvent. executionFinished(TestDescriptor testDescriptor, TestExecutionResult result)static EventEvent. executionSkipped(TestDescriptor testDescriptor, String reason)static EventEvent. executionStarted(TestDescriptor testDescriptor)Create a startedEventfor the suppliedTestDescriptor.static EventEvent. 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 newConditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a container.static Condition<Event>EventConditions. displayName(String displayName)Create a newConditionthat 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 newConditionthat matches if and only if anEvent's type isEventType.DYNAMIC_TEST_REGISTEREDand it matches the suppliedCondition.static Condition<Event>EventConditions. engine()Create a newConditionthat 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 newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand its payload is an instance ofTestExecutionResultthat matches the suppliedCondition.static Condition<Event>EventConditions. finishedSuccessfully()Create a newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand 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 newConditionthat matches if and only if anEvent's test descriptor is a container and its unique id contains the simple names of the suppliedClassand all of its enclosing classes.static Condition<Event>EventConditions. reason(String expectedReason)static Condition<Event>EventConditions. reason(Predicate<String> predicate)static Condition<Event>EventConditions. result(Condition<TestExecutionResult> condition)Create a newConditionthat matches if and only if anEvent's payload is an instance ofTestExecutionResultthat 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 newConditionthat 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 newConditionthat 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 newConditionthat 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 newConditionthat 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 newConditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a container.static Condition<Event>EventConditions. dynamicTestRegistered(Condition<Event> condition)Create a newConditionthat matches if and only if anEvent's type isEventType.DYNAMIC_TEST_REGISTEREDand 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).
-