Class EngineExecutionResults
- java.lang.Object
-
- org.junit.platform.testkit.engine.EngineExecutionResults
-
@API(status=EXPERIMENTAL, since="1.4") 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 Deprecated Methods Modifier and Type Method Description Eventsall()Deprecated.This method will be removed in 1.7; useallEvents()instead.EventsallEvents()Get all recorded events.EventscontainerEvents()Get recorded events for containers.Eventscontainers()Deprecated.This method will be removed in 1.7; usecontainerEvents()instead.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.Eventstests()Deprecated.This method will be removed in 1.7; usetestEvents()instead.
-
-
-
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
@API(status=EXPERIMENTAL, since="1.6") public Events allEvents()Get all recorded events.- Since:
- 1.6
- See Also:
containerEvents(),testEvents()
-
all
@Deprecated @API(status=DEPRECATED, since="1.6") public Events all()Deprecated.This method will be removed in 1.7; useallEvents()instead.Get all recorded events.
-
containerEvents
@API(status=EXPERIMENTAL, since="1.6") 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()
-
containers
@Deprecated @API(status=DEPRECATED, since="1.6") public Events containers()Deprecated.This method will be removed in 1.7; usecontainerEvents()instead.Get recorded events for containers.In this context, the word "container" applies to
TestDescriptorsthat returntruefromTestDescriptor.isContainer().
-
testEvents
@API(status=EXPERIMENTAL, since="1.6") 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()
-
tests
@Deprecated @API(status=DEPRECATED, since="1.6") public Events tests()Deprecated.This method will be removed in 1.7; usetestEvents()instead.Get recorded events for tests.In this context, the word "test" applies to
TestDescriptorsthat returntruefromTestDescriptor.isTest().
-
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.
-
-