Class Executions
java.lang.Object
org.junit.platform.testkit.engine.Executions
Executions is a facade that provides a fluent API for working with
executions.- Since:
- 1.4
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)Executions(List<Event> events, String category) privateExecutions(Stream<Execution> executions, String category) -
Method Summary
Modifier and TypeMethodDescriptionaborted()Get the abortedExecutionscontained in thisExecutionsobject.org.assertj.core.api.ListAssert<Execution> Shortcut fororg.assertj.core.api.Assertions.assertThat(executions.list()).longcount()Get the number of executions contained in thisExecutionsobject.createExecutions(List<Event> events) Create executions from the supplied list of events.debug()Print all executions toSystem.out.debug(OutputStream out) Print all executions to the suppliedOutputStream.private Executionsdebug(PrintWriter printWriter) Print all executions to the suppliedWriter.executionsByTerminationInfo(Predicate<TerminationInfo> predicate) failed()Get the failedExecutionscontained in thisExecutionsobject.Shortcut forexecutions.stream().filter(predicate).finished()Get the finishedExecutionscontained in thisExecutionsobject.list()Get the executions as aList.<R> Stream<R> Shortcut forexecutions.stream().map(mapper).skipped()Get the skippedExecutionscontained in thisExecutionsobject.started()Get the startedExecutionscontained in thisExecutionsobject.stream()Get the executions as aStream.Get the succeededExecutionscontained in thisExecutionsobject.
-
Field Details
-
executions
-
category
-
-
Constructor Details
-
Executions
-
Executions
-
-
Method Details
-
list
Get the executions as aList.- Returns:
- the list of executions; never
null - See Also:
-
stream
Get the executions as aStream.- Returns:
- the stream of executions; never
null - See Also:
-
map
Shortcut forexecutions.stream().map(mapper).- Parameters:
mapper- aFunctionto apply to each execution; nevernull- Returns:
- the mapped stream of executions; never
null - See Also:
-
filter
Shortcut forexecutions.stream().filter(predicate).- Parameters:
predicate- aPredicateto apply to each execution to decide if it should be included in the filtered stream; nevernull- Returns:
- the filtered stream of executions; never
null - See Also:
-
count
public long count()Get the number of executions contained in thisExecutionsobject. -
skipped
Get the skippedExecutionscontained in thisExecutionsobject.- Returns:
- the filtered
Executions; nevernull
-
started
Get the startedExecutionscontained in thisExecutionsobject.- Returns:
- the filtered
Executions; nevernull
-
finished
Get the finishedExecutionscontained in thisExecutionsobject.- Returns:
- the filtered
Executions; nevernull
-
aborted
Get the abortedExecutionscontained in thisExecutionsobject.- Returns:
- the filtered
Executions; nevernull
-
succeeded
Get the succeededExecutionscontained in thisExecutionsobject.- Returns:
- the filtered
Executions; nevernull
-
failed
Get the failedExecutionscontained in thisExecutionsobject.- Returns:
- the filtered
Executions; nevernull
-
assertThatExecutions
Shortcut fororg.assertj.core.api.Assertions.assertThat(executions.list()).- Returns:
- an instance of
ListAssertfor executions; nevernull - See Also:
-
debug
Print all executions toSystem.out.- Returns:
- this
Executionsobject for method chaining; nevernull
-
debug
Print all executions to the suppliedOutputStream.- Parameters:
out- theOutputStreamto print to; nevernull- Returns:
- this
Executionsobject for method chaining; nevernull
-
debug
Print all executions to the suppliedWriter.- Parameters:
writer- theWriterto print to; nevernull- Returns:
- this
Executionsobject for method chaining; nevernull
-
debug
-
finishedExecutions
-
finishedExecutionsByStatus
-
executionsByTerminationInfo
-
createExecutions
Create executions from the supplied list of events.
-