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

    Modifier and Type
    Method
    Description
    static Event
    Event.dynamicTestRegistered(org.junit.platform.engine.TestDescriptor testDescriptor)
    Create an Event for the dynamic registration of the supplied TestDescriptor.
    static Event
    Event.executionFinished(org.junit.platform.engine.TestDescriptor testDescriptor, org.junit.platform.engine.TestExecutionResult result)
    Create a finished Event for the supplied TestDescriptor and TestExecutionResult.
    static Event
    Event.executionSkipped(org.junit.platform.engine.TestDescriptor testDescriptor, String reason)
    Create a skipped Event for the supplied TestDescriptor and reason.
    static Event
    Event.executionStarted(org.junit.platform.engine.TestDescriptor testDescriptor)
    Create a started Event for the supplied TestDescriptor.
    static Event
    Event.fileEntryPublished(org.junit.platform.engine.TestDescriptor testDescriptor, org.junit.platform.engine.reporting.FileEntry file)
    Create an Event for a published file for the supplied TestDescriptor and FileEntry.
    static Event
    Event.reportingEntryPublished(org.junit.platform.engine.TestDescriptor testDescriptor, org.junit.platform.engine.reporting.ReportEntry entry)
    Create an Event for a reporting entry published for the supplied TestDescriptor and ReportEntry.
    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<Throwable>... conditions)
    Create a new Condition that matches if and only if an Event's type is EventType.FINISHED and its result has a status of ABORTED as well as a cause that matches all of the supplied conditions.
    org.assertj.core.api.ListAssert<Event>
    Shortcut for org.assertj.core.api.Assertions.assertThat(events.list()).
    static <T> Predicate<Event>
    Event.byPayload(Class<T> payloadType, Predicate<? super T> payloadPredicate)
    Create a Predicate for events whose payload types match the supplied payloadType and whose payloads match the supplied payloadPredicate.
    Event.byTestDescriptor(Predicate<? super org.junit.platform.engine.TestDescriptor> testDescriptorPredicate)
    Create a Predicate for events whose TestDescriptors match the supplied testDescriptorPredicate.
    Event.byType(EventType type)
    Create a Predicate for events whose event types match the supplied type.
    static org.assertj.core.api.Condition<Event>
    EventConditions.container()
    Create a new Condition that matches if and only if an Event's test descriptor is a container.
    static org.assertj.core.api.Condition<Event>
    EventConditions.container(Class<?> clazz)
    Create a new Condition that matches if and only if an Event's test descriptor is a container and its unique id contains the fully qualified name of the supplied Class.
    static org.assertj.core.api.Condition<Event>
    EventConditions.container(String uniqueIdSubstring)
    Create a new Condition that matches if and only if an Event's test descriptor is a container and its unique id contains the supplied String.
    static org.assertj.core.api.Condition<Event>
    EventConditions.container(org.assertj.core.api.Condition<Event> condition)
    Create a new Condition that matches if and only if an Event matches the supplied Condition and its test descriptor is a container.
    static org.assertj.core.api.Condition<Event>
    EventConditions.displayName(String displayName)
    Create a new Condition that matches if and only if the display name of an Event's test descriptor is equal to the supplied String.
    static org.assertj.core.api.Condition<Event>
    EventConditions.dynamicTestRegistered(String uniqueIdSubstring)
    Create a new Condition that matches if and only if an Event's type is EventType.DYNAMIC_TEST_REGISTERED and its unique id contains the supplied String.
    static org.assertj.core.api.Condition<Event>
    EventConditions.dynamicTestRegistered(org.assertj.core.api.Condition<Event> condition)
    Create a new Condition that matches if and only if an Event's type is EventType.DYNAMIC_TEST_REGISTERED and it matches the supplied Condition.
    static org.assertj.core.api.Condition<Event>
    EventConditions.engine()
    Create a new Condition that matches if and only if an Event's test descriptor is an instance of EngineDescriptor.
    static org.assertj.core.api.Condition<Event>
    EventConditions.event(org.assertj.core.api.Condition<? super Event>... conditions)
    Create a new Condition that matches if and only if an Event matches all of the supplied conditions.
    static org.assertj.core.api.Condition<Event>
    EventConditions.fileEntry(Predicate<org.junit.platform.engine.reporting.FileEntry> predicate)
    Create a new Condition that matches if and only if an Event's payload is an instance of FileEntry that contains a file that matches the supplied Predicate.
    Events.filter(Predicate<? super Event> predicate)
    Shortcut for events.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 new Condition that matches if and only if an Event's type is EventType.FINISHED and its payload is an instance of TestExecutionResult that matches the supplied Condition.
    static org.assertj.core.api.Condition<Event>
    EventConditions.finishedSuccessfully()
    Create a new Condition that matches if and only if an Event's type is EventType.FINISHED and its result has a status of SUCCESSFUL.
    static org.assertj.core.api.Condition<Event>
    EventConditions.finishedWithFailure()
    Create a new Condition that matches if and only if an Event's type is EventType.FINISHED and its result has a status of FAILED.
    static org.assertj.core.api.Condition<Event>
    EventConditions.finishedWithFailure(org.assertj.core.api.Condition<Throwable>... conditions)
    Create a new Condition that matches if and only if an Event's type is EventType.FINISHED and its result has a status of FAILED as well as a cause that matches all of the supplied Conditions.
    static org.assertj.core.api.Condition<Event>
    EventConditions.legacyReportingName(String legacyReportingName)
    Create a new Condition that matches if and only if the TestDescriptor.getLegacyReportingName() () legacy reporting name} of an Event's test descriptor is equal to the supplied String.
    Events.list()
    Get the events as a List.
    static org.assertj.core.api.Condition<Event>
    EventConditions.nestedContainer(Class<?> clazz)
    Create a new Condition that matches if and only if an Event's test descriptor is a container and its unique id contains the simple names of the supplied Class and 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 new Condition that matches if and only if an Event matches the supplied Condition, its test descriptor is a container, and its unique id contains the simple names of the supplied Class and all of its enclosing classes.
    static org.assertj.core.api.Condition<Event>
    EventConditions.reason(String expectedReason)
    Create a new Condition that matches if and only if an Event's payload is an instance of String that is equal to the supplied value.
    static org.assertj.core.api.Condition<Event>
    EventConditions.reason(Predicate<String> predicate)
    Create a new Condition that matches if and only if an Event's payload is an instance of String that matches the supplied Predicate.
    static org.assertj.core.api.Condition<Event>
    EventConditions.reportEntry(Map<String,String> keyValuePairs)
    Create a new Condition that matches if and only if an Event's payload is an instance of ReportEntry that contains the supplied key-value pairs.
    static org.assertj.core.api.Condition<Event>
    EventConditions.result(org.assertj.core.api.Condition<org.junit.platform.engine.TestExecutionResult> condition)
    Create a new Condition that matches if and only if an Event's payload is an instance of TestExecutionResult that matches the supplied Condition.
    static org.assertj.core.api.Condition<Event>
    EventConditions.skippedWithReason(String expectedReason)
    Create a new Condition that matches if and only if an Event's type is EventType.SKIPPED and the reason is equal to the supplied String.
    static org.assertj.core.api.Condition<Event>
    EventConditions.skippedWithReason(Predicate<String> predicate)
    Create a new Condition that matches if and only if an Event's type is EventType.SKIPPED and the reason matches the supplied Predicate.
    static org.assertj.core.api.Condition<Event>
    EventConditions.started()
    Create a new Condition that matches if and only if an Event's type is EventType.STARTED.
    Events.stream()
    Get the events as a Stream.
    static org.assertj.core.api.Condition<Event>
    EventConditions.test()
    Create a new Condition that matches if and only if an Event's test descriptor is a test.
    static org.assertj.core.api.Condition<Event>
    EventConditions.test(String uniqueIdSubstring)
    Create a new Condition that matches if and only if an Event's test descriptor is a test and its unique id contains the supplied String.
    static org.assertj.core.api.Condition<Event>
    EventConditions.test(String uniqueIdSubstring, String displayName)
    Create a new Condition that matches if and only if an Event's test descriptor is a test, its unique id contains the supplied String, and its display name equals the supplied String.
    static org.assertj.core.api.Condition<Event>
    EventConditions.test(org.assertj.core.api.Condition<Event> condition)
    Create a new Condition that matches if and only if an Event matches the supplied Condition and its test descriptor is a test.
    static org.assertj.core.api.Condition<Event>
    EventConditions.type(EventType expectedType)
    Create a new Condition that matches if and only if an Event's type is equal to the supplied EventType.
    static org.assertj.core.api.Condition<Event>
    EventConditions.uniqueId(String uniqueId)
    Create a new Condition that matches if and only if the unique id of an Event's test descriptor is equal to the UniqueId parsed from the supplied String.
    static org.assertj.core.api.Condition<Event>
    EventConditions.uniqueId(org.assertj.core.api.Condition<? super org.junit.platform.engine.UniqueId> condition)
    Create a new Condition that matches if and only if the unique id of an Event's test descriptor matches the supplied Condition.
    static org.assertj.core.api.Condition<Event>
    EventConditions.uniqueId(org.junit.platform.engine.UniqueId uniqueId)
    Create a new Condition that matches if and only if the unique id of an Event's test descriptor is equal to the supplied UniqueId.
    static org.assertj.core.api.Condition<Event>
    EventConditions.uniqueIdSubstring(String uniqueIdSubstring)
    Create a new Condition that matches if and only if the unique id of an Event's test descriptor contains the supplied String.
    static org.assertj.core.api.Condition<Event>
    EventConditions.uniqueIdSubstrings(String... uniqueIdSubstrings)
    Create a new Condition that matches if and only if the unique id of an Event's test descriptor contains all of the supplied strings.
    static org.assertj.core.api.Condition<Event>
    EventConditions.uniqueIdSubstrings(List<String> uniqueIdSubstrings)
    Create a new Condition that matches if and only if the unique id of an Event'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 org.assertj.core.api.Condition<Event>
    EventConditions.container(org.assertj.core.api.Condition<Event> condition)
    Create a new Condition that matches if and only if an Event matches the supplied Condition and its test descriptor is a container.
    static org.assertj.core.api.Condition<Event>
    EventConditions.dynamicTestRegistered(org.assertj.core.api.Condition<Event> condition)
    Create a new Condition that matches if and only if an Event's type is EventType.DYNAMIC_TEST_REGISTERED and it matches the supplied Condition.
    Events.filter(Predicate<? super Event> predicate)
    Shortcut for events.stream().filter(predicate).
    <R> Stream<R>
    Events.map(Function<? super Event, ? extends R> mapper)
    Shortcut for events.stream().map(mapper).
    static org.assertj.core.api.Condition<Event>
    EventConditions.nestedContainer(Class<?> clazz, org.assertj.core.api.Condition<Event> condition)
    Create a new Condition that matches if and only if an Event matches the supplied Condition, its test descriptor is a container, and its unique id contains the simple names of the supplied Class and all of its enclosing classes.
    static org.assertj.core.api.Condition<Event>
    EventConditions.test(org.assertj.core.api.Condition<Event> condition)
    Create a new Condition that matches if and only if an Event matches the supplied Condition and its test descriptor is a test.