Module org.junit.platform.testkit
Class EngineExecutionResults
- java.lang.Object
-
- org.junit.platform.testkit.engine.EngineExecutionResults
-
@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 givenTestEngine
.- Since:
- 1.4
- See Also:
allEvents()
,containerEvents()
,testEvents()
,ExecutionRecorder
,Events
,Executions
-
-
Field Summary
Fields Modifier and Type Field Description private Events
allEvents
private Events
containerEvents
private Events
testEvents
-
Constructor Summary
Constructors Constructor Description EngineExecutionResults(java.util.List<Event> events)
ConstructEngineExecutionResults
from the supplied list of recorded events.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
EngineExecutionResults
EngineExecutionResults(java.util.List<Event> events)
ConstructEngineExecutionResults
from the supplied list of recorded events.- Parameters:
events
- the list of events; nevernull
or containingnull
elements
-
-
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
TestDescriptors
that returntrue
fromTestDescriptor.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
TestDescriptors
that returntrue
fromTestDescriptor.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.
-
-