Class EngineExecutionResults
- java.lang.Object
-
- org.junit.platform.testkit.engine.EngineExecutionResults
-
@API(status=MAINTAINED, since="1.7") public class EngineExecutionResults extends java.lang.ObjectEngineExecutionResultsprovides a fluent API for processing the results of executing a test plan on the JUnit Platform for a givenTestEngine.- Since:
- 1.4
- See Also:
allEvents(),containerEvents(),testEvents(),ExecutionRecorder,Events,Executions
-
-
Field Summary
Fields Modifier and Type Field Description private EventsallEventsprivate EventscontainerEventsprivate EventstestEvents
-
Constructor Summary
Constructors Constructor Description EngineExecutionResults(java.util.List<Event> events)ConstructEngineExecutionResultsfrom the supplied list of recorded events.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventsallEvents()Get all recorded events.EventscontainerEvents()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.EventstestEvents()Get recorded events for tests.
-
-
-
Constructor Detail
-
EngineExecutionResults
EngineExecutionResults(java.util.List<Event> events)
ConstructEngineExecutionResultsfrom the supplied list of recorded events.- Parameters:
events- the list of events; nevernullor containingnullelements
-
-
Method Detail
-
allEvents
public Events allEvents()
Get all recorded events.- Since:
- 1.6
- See Also:
containerEvents(),testEvents()
-
containerEvents
public Events containerEvents()
Get recorded events for containers.In this context, the word "container" applies to
TestDescriptorsthat returntruefromTestDescriptor.isContainer().- Since:
- 1.6
- See Also:
allEvents(),testEvents()
-
testEvents
public Events testEvents()
Get recorded events for tests.In this context, the word "test" applies to
TestDescriptorsthat returntruefromTestDescriptor.isTest().- Since:
- 1.6
- See Also:
allEvents(),containerEvents()
-
filterEvents
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.
-
-