java.lang.Object
org.junit.platform.testkit.engine.EventStatistics
EventStatistics
provides a fluent API for asserting statistics
for events.
EventStatistics
is used in conjunction with
Events.assertStatistics(java.util.function.Consumer)
as in the
following example.
events.assertStatistics(stats > stats.started(1).succeeded(1).failed(0));

Method Summary
Modifier and TypeMethodDescriptionaborted
(long expected) Specify the number of expected aborted events.dynamicallyRegistered
(long expected) Specify the number of expected dynamic registration events.failed
(long expected) Specify the number of expected failed events.finished
(long expected) Specify the number of expected finished events.reportingEntryPublished
(long expected) Specify the number of expected reporting entry publication events.skipped
(long expected) Specify the number of expected skipped events.started
(long expected) Specify the number of expected started events.succeeded
(long expected) Specify the number of expected succeeded events.

Method Details

skipped
Specify the number of expected skipped events. Parameters:
expected
 the expected number of events Returns:
 this
EventStatistics
for method chaining

started
Specify the number of expected started events. Parameters:
expected
 the expected number of events Returns:
 this
EventStatistics
for method chaining

finished
Specify the number of expected finished events. Parameters:
expected
 the expected number of events Returns:
 this
EventStatistics
for method chaining

aborted
Specify the number of expected aborted events. Parameters:
expected
 the expected number of events Returns:
 this
EventStatistics
for method chaining

succeeded
Specify the number of expected succeeded events. Parameters:
expected
 the expected number of events Returns:
 this
EventStatistics
for method chaining

failed
Specify the number of expected failed events. Parameters:
expected
 the expected number of events Returns:
 this
EventStatistics
for method chaining

reportingEntryPublished
Specify the number of expected reporting entry publication events. Parameters:
expected
 the expected number of events Returns:
 this
EventStatistics
for method chaining

dynamicallyRegistered
Specify the number of expected dynamic registration events. Parameters:
expected
 the expected number of events Returns:
 this
EventStatistics
for method chaining
