@API(status=MAINTAINED,
since="1.7")
public class EngineExecutionResults
extends java.lang.Object
EngineExecutionResults provides a fluent API for processing the
results of executing a test plan on the JUnit Platform for a given
TestEngine.allEvents(),
containerEvents(),
testEvents(),
ExecutionRecorder,
Events,
Executions| Modifier and Type | Field and Description |
|---|---|
private Events |
allEvents |
private Events |
containerEvents |
private Events |
testEvents |
| Constructor and Description |
|---|
EngineExecutionResults(java.util.List<Event> events)
Construct
EngineExecutionResults from the supplied list of recorded
events. |
| Modifier and Type | Method and Description |
|---|---|
Events |
allEvents()
Get all recorded events.
|
Events |
containerEvents()
Get recorded events for containers.
|
private static java.util.stream.Stream<Event> |
filterEvents(java.util.List<Event> events,
java.util.function.Predicate<? super TestDescriptor> predicate)
Filter the supplied list of events using the supplied predicate.
|
Events |
testEvents()
Get recorded events for tests.
|
private final Events allEvents
private final Events testEvents
private final Events containerEvents
EngineExecutionResults(java.util.List<Event> events)
EngineExecutionResults from the supplied list of recorded
events.events - the list of events; never null or
containing null elementspublic Events allEvents()
containerEvents(),
testEvents()public Events containerEvents()
In this context, the word "container" applies to TestDescriptors that return true from TestDescriptor.isContainer().
allEvents(),
testEvents()public Events testEvents()
In this context, the word "test" applies to TestDescriptors that return true from TestDescriptor.isTest().
allEvents(),
containerEvents()private static java.util.stream.Stream<Event> filterEvents(java.util.List<Event> events, java.util.function.Predicate<? super TestDescriptor> predicate)