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
-
Method Summary
Modifier and TypeMethodDescriptionaborted()
Get the abortedExecutions
contained in thisExecutions
object.Shortcut fororg.assertj.core.api.Assertions.assertThat(executions.list())
.long
count()
Get the number of executions contained in thisExecutions
object.debug()
Print all executions toSystem.out
.debug
(OutputStream out) Print all executions to the suppliedOutputStream
.Print all executions to the suppliedWriter
.failed()
Get the failedExecutions
contained in thisExecutions
object.Shortcut forexecutions.stream().filter(predicate)
.finished()
Get the finishedExecutions
contained in thisExecutions
object.list()
Get the executions as aList
.<R> Stream<R>
Shortcut forexecutions.stream().map(mapper)
.skipped()
Get the skippedExecutions
contained in thisExecutions
object.started()
Get the startedExecutions
contained in thisExecutions
object.stream()
Get the executions as aStream
.Get the succeededExecutions
contained in thisExecutions
object.
-
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
- aFunction
to apply to each execution; nevernull
- Returns:
- the mapped stream of executions; never
null
- See Also:
-
filter
Shortcut forexecutions.stream().filter(predicate)
.- Parameters:
predicate
- aPredicate
to 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 thisExecutions
object. -
skipped
Get the skippedExecutions
contained in thisExecutions
object.- Returns:
- the filtered
Executions
; nevernull
-
started
Get the startedExecutions
contained in thisExecutions
object.- Returns:
- the filtered
Executions
; nevernull
-
finished
Get the finishedExecutions
contained in thisExecutions
object.- Returns:
- the filtered
Executions
; nevernull
-
aborted
Get the abortedExecutions
contained in thisExecutions
object.- Returns:
- the filtered
Executions
; nevernull
-
succeeded
Get the succeededExecutions
contained in thisExecutions
object.- Returns:
- the filtered
Executions
; nevernull
-
failed
Get the failedExecutions
contained in thisExecutions
object.- Returns:
- the filtered
Executions
; nevernull
-
assertThatExecutions
Shortcut fororg.assertj.core.api.Assertions.assertThat(executions.list())
.- Returns:
- an instance of
ListAssert
for executions; nevernull
- See Also:
-
debug
Print all executions toSystem.out
.- Returns:
- this
Executions
object for method chaining; nevernull
-
debug
Print all executions to the suppliedOutputStream
.- Parameters:
out
- theOutputStream
to print to; nevernull
- Returns:
- this
Executions
object for method chaining; nevernull
-
debug
Print all executions to the suppliedWriter
.- Parameters:
writer
- theWriter
to print to; nevernull
- Returns:
- this
Executions
object for method chaining; nevernull
-