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 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.private static EventEvents.findEvent(List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition) static EventEvent.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 newConditionthat 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 newConditionthat 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 newConditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a container.static org.assertj.core.api.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 org.assertj.core.api.Condition<Event>EventConditions.dynamicTestRegistered(String uniqueIdSubstring) Create a newConditionthat matches if and only if anEvent's type isEventType.DYNAMIC_TEST_REGISTEREDand its unique id contains the suppliedString.static org.assertj.core.api.Condition<Event>EventConditions.dynamicTestRegistered(org.assertj.core.api.Condition<Event> condition) Create a newConditionthat matches if and only if anEvent's type isEventType.DYNAMIC_TEST_REGISTEREDand it matches the suppliedCondition.static org.assertj.core.api.Condition<Event>EventConditions.engine()Create a newConditionthat matches if and only if anEvent's test descriptor is an instance ofEngineDescriptor.static org.assertj.core.api.Condition<Event>Create a newConditionthat matches if and only if anEventmatches 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 newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand its payload is an instance ofTestExecutionResultthat matches the suppliedCondition.Events.finishedEventsByStatus(TestExecutionResult.Status status) static org.assertj.core.api.Condition<Event>EventConditions.finishedSuccessfully()Create a newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand 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 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 org.assertj.core.api.Condition<Event>EventConditions.nestedContainer(Class<?> clazz, org.assertj.core.api.Condition<Event> condition) Create a newConditionthat matches if and only if anEventmatches the suppliedCondition, its test descriptor is a container, and its unique id contains the simple names of the suppliedClassand 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 newConditionthat matches if and only if anEvent's payload is an instance ofReportEntrythat contains the supplied key-value pairs.static org.assertj.core.api.Condition<Event>EventConditions.result(org.assertj.core.api.Condition<TestExecutionResult> condition) Create a newConditionthat matches if and only if anEvent's payload is an instance ofTestExecutionResultthat matches the suppliedCondition.static org.assertj.core.api.Condition<Event>EventConditions.skippedWithReason(String expectedReason) Create a newConditionthat matches if and only if anEvent's type isEventType.SKIPPEDand the reason is equal to the suppliedString.static org.assertj.core.api.Condition<Event>EventConditions.skippedWithReason(Predicate<String> predicate) Create a newConditionthat matches if and only if anEvent's type isEventType.SKIPPEDand 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 newConditionthat 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 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 org.assertj.core.api.Condition<Event>Create a newConditionthat matches if and only if anEventmatches the suppliedConditionand 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 newConditionthat 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 newConditionthat 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 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 EventModifier and TypeMethodDescriptionprivate static voidEvents.assertEventsMatchExactly(List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions) private static voidEvents.assertEventsMatchLoosely(List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions) private static voidEvents.assertEventsMatchLooselyInOrder(List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions) private static voidEvents.checkCondition(List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition) private static voidEvents.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 newConditionthat matches if and only if anEventmatches the suppliedConditionand 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 newConditionthat matches if and only if anEvent's type isEventType.DYNAMIC_TEST_REGISTEREDand 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 EventEvents.findEvent(List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition) private static EventEvents.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 newConditionthat matches if and only if anEventmatches the suppliedCondition, its test descriptor is a container, and its unique id contains the simple names of the suppliedClassand all of its enclosing classes.static org.assertj.core.api.Condition<Event>Create a newConditionthat matches if and only if anEventmatches the suppliedConditionand 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) ConstructEngineExecutionResultsfrom the supplied list of recorded events.(package private)(package private)(package private)Executions(List<Event> events, String category)