Class EngineExecutionResults
- java.lang.Object
-
- org.junit.platform.testkit.engine.EngineExecutionResults
-
@API(status=EXPERIMENTAL, since="1.4") 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 Deprecated Methods Modifier and Type Method Description Events
all()
Deprecated.This method will be removed in 1.7; useallEvents()
instead.Events
allEvents()
Get all recorded events.Events
containerEvents()
Get recorded events for containers.Events
containers()
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.Events
testEvents()
Get recorded events for tests.Events
tests()
Deprecated.This method will be removed in 1.7; usetestEvents()
instead.
-
-
-
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
@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
TestDescriptors
that returntrue
fromTestDescriptor.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
TestDescriptors
that returntrue
fromTestDescriptor.isContainer()
.
-
testEvents
@API(status=EXPERIMENTAL, since="1.6") 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()
-
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
TestDescriptors
that returntrue
fromTestDescriptor.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.
-
-