@API(status=MAINTAINED,
since="1.7")
public final class Executions
extends java.lang.Object
Executions is a facade that provides a fluent API for working with
executions.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
category |
private java.util.List<Execution> |
executions |
| Modifier | Constructor and Description |
|---|---|
(package private) |
Executions(java.util.List<Event> events,
java.lang.String category) |
private |
Executions(java.util.stream.Stream<Execution> executions,
java.lang.String category) |
| Modifier and Type | Method and Description |
|---|---|
Executions |
aborted()
Get the aborted
Executions contained in this Executions object. |
org.assertj.core.api.ListAssert<Execution> |
assertThatExecutions()
Shortcut for
org.assertj.core.api.Assertions.assertThat(executions.list()). |
long |
count()
Get the number of executions contained in this
Executions object. |
private static java.util.List<Execution> |
createExecutions(java.util.List<Event> events)
Create executions from the supplied list of events.
|
Executions |
debug()
Print all executions to
System.out. |
Executions |
debug(java.io.OutputStream out)
Print all executions to the supplied
OutputStream. |
private Executions |
debug(java.io.PrintWriter printWriter) |
Executions |
debug(java.io.Writer writer)
Print all executions to the supplied
Writer. |
private java.util.stream.Stream<Execution> |
executionsByTerminationInfo(java.util.function.Predicate<TerminationInfo> predicate) |
Executions |
failed()
Get the failed
Executions contained in this Executions object. |
java.util.stream.Stream<Execution> |
filter(java.util.function.Predicate<? super Execution> predicate)
Shortcut for
executions.stream().filter(predicate). |
Executions |
finished()
Get the finished
Executions contained in this Executions object. |
private java.util.stream.Stream<Execution> |
finishedExecutions() |
private java.util.stream.Stream<Execution> |
finishedExecutionsByStatus(TestExecutionResult.Status status) |
java.util.List<Execution> |
list()
Get the executions as a
List. |
<R> java.util.stream.Stream<R> |
map(java.util.function.Function<? super Execution,? extends R> mapper)
Shortcut for
executions.stream().map(mapper). |
Executions |
skipped()
Get the skipped
Executions contained in this Executions object. |
Executions |
started()
Get the started
Executions contained in this Executions object. |
java.util.stream.Stream<Execution> |
stream()
Get the executions as a
Stream. |
Executions |
succeeded()
Get the succeeded
Executions contained in this Executions object. |
private final java.util.List<Execution> executions
private final java.lang.String category
private Executions(java.util.stream.Stream<Execution> executions, java.lang.String category)
Executions(java.util.List<Event> events, java.lang.String category)
public java.util.List<Execution> list()
List.nullstream()public java.util.stream.Stream<Execution> stream()
Stream.nulllist()public <R> java.util.stream.Stream<R> map(java.util.function.Function<? super Execution,? extends R> mapper)
executions.stream().map(mapper).mapper - a Function to apply to each execution;
never nullnullstream(),
Stream.map(Function)public java.util.stream.Stream<Execution> filter(java.util.function.Predicate<? super Execution> predicate)
executions.stream().filter(predicate).predicate - a Predicate to apply to each execution to decide
if it should be included in the filtered stream; never nullnullstream(),
Stream.filter(Predicate)public long count()
Executions object.public Executions skipped()
Executions contained in this Executions object.Executions; never nullpublic Executions started()
Executions contained in this Executions object.Executions; never nullpublic Executions finished()
Executions contained in this Executions object.Executions; never nullpublic Executions aborted()
Executions contained in this Executions object.Executions; never nullpublic Executions succeeded()
Executions contained in this Executions object.Executions; never nullpublic Executions failed()
Executions contained in this Executions object.Executions; never nullpublic org.assertj.core.api.ListAssert<Execution> assertThatExecutions()
org.assertj.core.api.Assertions.assertThat(executions.list()).ListAssert for executions; never nullAssertions.assertThat(List),
ListAssertpublic Executions debug()
System.out.Executions object for method chaining; never nullpublic Executions debug(java.io.OutputStream out)
OutputStream.out - the OutputStream to print to; never nullExecutions object for method chaining; never nullpublic Executions debug(java.io.Writer writer)
Writer.writer - the Writer to print to; never nullExecutions object for method chaining; never nullprivate Executions debug(java.io.PrintWriter printWriter)
private java.util.stream.Stream<Execution> finishedExecutions()
private java.util.stream.Stream<Execution> finishedExecutionsByStatus(TestExecutionResult.Status status)
private java.util.stream.Stream<Execution> executionsByTerminationInfo(java.util.function.Predicate<TerminationInfo> predicate)