Uses of Class
org.junit.platform.testkit.engine.Event
-
Uses of Event in org.junit.platform.testkit.engine
Methods in org.junit.platform.testkit.engine that return EventModifier and TypeMethodDescriptionstatic EventEvent.dynamicTestRegistered(org.junit.platform.engine.TestDescriptor testDescriptor)Create anEventfor the dynamic registration of the suppliedTestDescriptor.static EventEvent.executionFinished(org.junit.platform.engine.TestDescriptor testDescriptor, org.junit.platform.engine.TestExecutionResult result)Create a finishedEventfor the suppliedTestDescriptorandTestExecutionResult.static EventEvent.executionSkipped(org.junit.platform.engine.TestDescriptor testDescriptor, String reason)Create a skippedEventfor the suppliedTestDescriptorandreason.static EventEvent.executionStarted(org.junit.platform.engine.TestDescriptor testDescriptor)Create a startedEventfor the suppliedTestDescriptor.static EventEvent.reportingEntryPublished(org.junit.platform.engine.TestDescriptor testDescriptor, org.junit.platform.engine.reporting.ReportEntry entry)Create anEventfor a reporting entry published for the suppliedTestDescriptorandReportEntry.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)Create a newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand its result has a status ofABORTEDas well as a cause that matches all of the supplied conditions.org.assertj.core.api.ListAssert<Event>Events.assertThatEvents()Shortcut fororg.assertj.core.api.Assertions.assertThat(events.list()).Event.byTestDescriptor(Predicate<? super org.junit.platform.engine.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.Shortcut forevents.stream().filter(predicate).static org.assertj.core.api.Condition<Event>EventConditions.finished(org.assertj.core.api.Condition<org.junit.platform.engine.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 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.static org.assertj.core.api.Condition<Event>EventConditions.finishedWithFailure()Create a newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand its result has a status ofFAILED.static org.assertj.core.api.Condition<Event>EventConditions.finishedWithFailure(org.assertj.core.api.Condition<Throwable>... conditions)Create a newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand its result has a status ofFAILEDas well as a cause that matches all of the suppliedConditions.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)static org.assertj.core.api.Condition<Event>EventConditions.result(org.assertj.core.api.Condition<org.junit.platform.engine.TestExecutionResult> condition)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 TypeMethodDescriptionstatic 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.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).<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.