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 EventEvent.dynamicTestRegistered(TestDescriptor testDescriptor) Create anEventfor the dynamic registration of the suppliedTestDescriptor.static EventEvent.executionFinished(TestDescriptor testDescriptor, TestExecutionResult result) static EventEvent.executionSkipped(TestDescriptor testDescriptor, @Nullable String reason) static EventEvent.executionStarted(TestDescriptor testDescriptor) Create a startedEventfor the suppliedTestDescriptor.static EventEvent.fileEntryPublished(TestDescriptor testDescriptor, FileEntry file) static EventEvent.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 newConditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a container.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.EventConditions.dynamicTestRegistered(String uniqueIdSubstring) EventConditions.dynamicTestRegistered(Condition<Event> condition) Create a newConditionthat matches if and only if anEvent's type isEventType.DYNAMIC_TEST_REGISTEREDand it matches the suppliedCondition.EventConditions.engine()Create a newConditionthat 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 newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand its payload is an instance ofTestExecutionResultthat matches the suppliedCondition.EventConditions.finishedSuccessfully()Create a newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand its result has a status ofSUCCESSFUL.EventConditions.finishedWithFailure()EventConditions.finishedWithFailure(Condition<Throwable>... conditions) EventConditions.legacyReportingName(String legacyReportingName) Create a newConditionthat matches if and only if the TestDescriptor.getLegacyReportingName() () legacy reporting name} of anEvent's test descriptor is equal to the suppliedString.Events.list()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.EventConditions.nestedContainer(Class<?> clazz, 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.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.EventConditions.result(Condition<TestExecutionResult> condition) Create a newConditionthat matches if and only if anEvent's payload is an instance ofTestExecutionResultthat matches the suppliedCondition.EventConditions.skippedWithReason(String expectedReason) EventConditions.skippedWithReason(Predicate<String> predicate) EventConditions.started()Events.stream()EventConditions.test()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.Create a newConditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a test.Create a newConditionthat matches if and only if the unique id of anEvent's test descriptor matches the suppliedCondition.Create a newConditionthat matches if and only if the unique id of anEvent's test descriptor is equal to the suppliedUniqueId.EventConditions.uniqueIdSubstring(String uniqueIdSubstring) Create a newConditionthat matches if and only if the unique id of anEvent's test descriptor contains the suppliedString.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.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 TypeMethodDescriptionCreate a newConditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a container.EventConditions.dynamicTestRegistered(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).EventConditions.nestedContainer(Class<?> clazz, 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.Create a newConditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a test.