Class EngineExecutionResults
java.lang.Object
org.junit.platform.testkit.engine.EngineExecutionResults
EngineExecutionResults
provides a fluent API for processing the
results of executing a test plan on the JUnit Platform for a given
TestEngine
.- Since:
- 1.4
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEngineExecutionResults
(List<Event> events) ConstructEngineExecutionResults
from the supplied list of recorded events. -
Method Summary
Modifier and TypeMethodDescriptionGet all recorded events.Get recorded events for containers.filterEvents
(List<Event> events, Predicate<? super TestDescriptor> predicate) Filter the supplied list of events using the supplied predicate.Get recorded events for tests.
-
Field Details
-
allEvents
-
testEvents
-
containerEvents
-
-
Constructor Details
-
EngineExecutionResults
ConstructEngineExecutionResults
from the supplied list of recorded events.- Parameters:
events
- the list of events; nevernull
or containingnull
elements
-
-
Method Details
-
allEvents
Get all recorded events.- Since:
- 1.6
- See Also:
-
containerEvents
Get recorded events for containers.In this context, the word "container" applies to
TestDescriptors
that returntrue
fromTestDescriptor.isContainer()
.- Since:
- 1.6
- See Also:
-
testEvents
Get recorded events for tests.In this context, the word "test" applies to
TestDescriptors
that returntrue
fromTestDescriptor.isTest()
.- Since:
- 1.6
- See Also:
-
filterEvents
private static Stream<Event> filterEvents(List<Event> events, Predicate<? super TestDescriptor> predicate) Filter the supplied list of events using the supplied predicate.
-