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
Fields in org.junit.platform.testkit.engine with type parameters of type Event Modifier and Type Field Description private java.util.List<Event>Events. eventsprivate java.util.List<Event>ExecutionRecorder. eventsMethods 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, java.lang.String reason)static EventEvent. executionStarted(TestDescriptor testDescriptor)Create a startedEventfor the suppliedTestDescriptor.private static EventEvents. findEvent(java.util.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 Event Modifier and Type Method Description static org.assertj.core.api.Condition<Event>EventConditions. abortedWithReason(org.assertj.core.api.Condition<java.lang.Throwable>... conditions)org.assertj.core.api.ListAssert<Event>Events. assertThatEvents()Shortcut fororg.assertj.core.api.Assertions.assertThat(events.list()).static <T> java.util.function.Predicate<Event>Event. byPayload(java.lang.Class<T> payloadType, java.util.function.Predicate<? super T> payloadPredicate)Create aPredicatefor events whose payload types match the suppliedpayloadTypeand whose payloads match the suppliedpayloadPredicate.static java.util.function.Predicate<Event>Event. byTestDescriptor(java.util.function.Predicate<? super TestDescriptor> testDescriptorPredicate)static java.util.function.Predicate<Event>Event. byType(EventType type)static org.assertj.core.api.Condition<Event>EventConditions. container()static org.assertj.core.api.Condition<Event>EventConditions. container(java.lang.Class<?> clazz)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>EventConditions. container(java.lang.String uniqueIdSubstring)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>EventConditions. container(org.assertj.core.api.Condition<Event> condition)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(java.lang.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(java.lang.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>EventConditions. event(org.assertj.core.api.Condition<? super Event>... conditions)Create a newConditionthat matches if and only if anEventmatches all of the supplied conditions.private java.util.stream.Stream<Event>Events. eventsByType(EventType type)java.util.stream.Stream<Event>Events. filter(java.util.function.Predicate<? super Event> predicate)Shortcut forevents.stream().filter(predicate).private static java.util.stream.Stream<Event>EngineExecutionResults. filterEvents(java.util.List<Event> events, java.util.function.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.private java.util.stream.Stream<Event>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<java.lang.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<java.lang.Throwable>... conditions)java.util.List<Event>Events. list()Get the events as aList.static org.assertj.core.api.Condition<Event>EventConditions. nestedContainer(java.lang.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. reason(java.lang.String expectedReason)static org.assertj.core.api.Condition<Event>EventConditions. reason(java.util.function.Predicate<java.lang.String> predicate)static org.assertj.core.api.Condition<Event>EventConditions. reportEntry(java.util.Map<java.lang.String,java.lang.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(java.lang.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(java.util.function.Predicate<java.lang.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()java.util.stream.Stream<Event>Events. stream()Get the events as aStream.static org.assertj.core.api.Condition<Event>EventConditions. test()static org.assertj.core.api.Condition<Event>EventConditions. test(java.lang.String uniqueIdSubstring)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>EventConditions. test(java.lang.String uniqueIdSubstring, java.lang.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 org.assertj.core.api.Condition<Event>EventConditions. type(EventType expectedType)static org.assertj.core.api.Condition<Event>EventConditions. uniqueIdSubstring(java.lang.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(java.lang.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(java.util.List<java.lang.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 private static voidEvents. assertEventsMatchExactly(java.util.List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions)private static voidEvents. assertEventsMatchLoosely(java.util.List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions)private static voidEvents. assertEventsMatchLooselyInOrder(java.util.List<Event> events, org.assertj.core.api.Condition<? super Event>... conditions)private static voidEvents. checkCondition(java.util.List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition)private static voidEvents. checkCondition(java.util.List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition)static org.assertj.core.api.Condition<Event>EventConditions. container(org.assertj.core.api.Condition<Event> condition)Create a newConditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a container.private static java.util.List<Execution>Executions. createExecutions(java.util.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.java.util.stream.Stream<Event>Events. filter(java.util.function.Predicate<? super Event> predicate)Shortcut forevents.stream().filter(predicate).private static java.util.stream.Stream<Event>EngineExecutionResults. filterEvents(java.util.List<Event> events, java.util.function.Predicate<? super TestDescriptor> predicate)Filter the supplied list of events using the supplied predicate.private static EventEvents. findEvent(java.util.List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition)private static EventEvents. findEvent(java.util.List<Event> events, org.assertj.core.api.SoftAssertions softly, org.assertj.core.api.Condition<? super Event> condition)<R> java.util.stream.Stream<R>Events. map(java.util.function.Function<? super Event,? extends R> mapper)Shortcut forevents.stream().map(mapper).Constructor parameters in org.junit.platform.testkit.engine with type arguments of type Event Constructor Description EngineExecutionResults(java.util.List<Event> events)ConstructEngineExecutionResultsfrom the supplied list of recorded events.Events(java.util.List<Event> events, java.lang.String category)Events(java.util.stream.Stream<Event> events, java.lang.String category)Executions(java.util.List<Event> events, java.lang.String category)
-