Top Description Fields Constructors Methods
org.junit.platform.testkit.engine

public Class EngineExecutionResults

extends Object
Class Inheritance
Annotations
@API
status:MAINTAINED
since:1.7
Static Imports
org.apiguardian.api.API.Status.MAINTAINED, org.junit.platform.testkit.engine.Event.byTestDescriptor

EngineExecutionResults provides a fluent API for processing the results of executing a test plan on the JUnit Platform for a given TestEngine.
Since
1.4
See Also
allEvents(), containerEvents(), testEvents(), ExecutionRecorder, Events, Executions

Field Summary

Modifier and TypeField and Description
private final Events
private final Events
private final Events

Constructor Summary

AccessConstructor and Description
pack-priv
EngineExecutionResults(List<Event>
the list of events; never null or containing null elements
events
)

Construct EngineExecutionResults from the supplied list of recorded events.

Method Summary

Modifier and TypeMethod and Description
public Events
allEvents()

Get all recorded events.

public Events
containerEvents()

Get recorded events for containers.

private static Stream<Event>
filterEvents(List<Event> events, Predicate<? super TestDescriptor> predicate)

Filter the supplied list of events using the supplied predicate.

public Events
testEvents()

Get recorded events for tests.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allEventsback to summary
private final Events allEvents
containerEventsback to summary
private final Events containerEvents
testEventsback to summary
private final Events testEvents

Constructor Detail

EngineExecutionResultsback to summary
pack-priv EngineExecutionResults(List<Event> events)

Construct EngineExecutionResults from the supplied list of recorded events.

Parameters
events:List<Event>

the list of events; never null or containing null elements

Method Detail

allEventsback to summary
public Events allEvents()

Get all recorded events.

Since
1.6
See Also
containerEvents(), testEvents()
containerEventsback to summary
public Events containerEvents()

Get recorded events for containers.

In this context, the word "container" applies to TestDescriptors that return true from TestDescriptor#isContainer().

Since
1.6
See Also
allEvents(), testEvents()
filterEventsback to summary
private static Stream<Event> filterEvents(List<Event> events, Predicate<? super TestDescriptor> predicate)

Filter the supplied list of events using the supplied predicate.

testEventsback to summary
public Events testEvents()

Get recorded events for tests.

In this context, the word "test" applies to TestDescriptors that return true from TestDescriptor#isTest().

Since
1.6
See Also
allEvents(), containerEvents()