EventStatistics provides a fluent API for asserting statistics
for events.
EventStatistics is used in conjunction with
Events#assertStatistics(java. as in the
following example.
events.assertStatistics(stats -> stats.started(1).succeeded(1).failed(0));
Event, Events
| Modifier and Type | Field and Description |
|---|---|
| private final Events | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected aborted events. |
| pack-priv void | |
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected dynamic registration events. |
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected failed events. |
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected file entry publication events. |
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected finished events. |
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected reporting entry publication events. |
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected skipped events. |
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected started events. |
| public EventStatistics | Returns: thisEventStatistics for method chainingthe expected number of events expected)Specify the number of expected succeeded events. |
| events | back to summary |
|---|---|
| private final Events events | |
| executables | back to summary |
|---|---|
| private final List<Assertions. | |
| EventStatistics | back to summary |
|---|---|
| pack-priv EventStatistics(Events events, String category) | |
| aborted | back to summary |
|---|---|
| public EventStatistics aborted(long expected) Specify the number of expected aborted events.
| |
| assertAll | back to summary |
|---|---|
| pack-priv void assertAll() | |
| dynamicallyRegistered | back to summary |
|---|---|
| public EventStatistics dynamicallyRegistered(long expected) Specify the number of expected dynamic registration events.
| |
| failed | back to summary |
|---|---|
| public EventStatistics failed(long expected) Specify the number of expected failed events.
| |
| fileEntryPublished | back to summary |
|---|---|
| public EventStatistics fileEntryPublished(long expected) Specify the number of expected file entry publication events.
| |
| finished | back to summary |
|---|---|
| public EventStatistics finished(long expected) Specify the number of expected finished events.
| |
| reportingEntryPublished | back to summary |
|---|---|
| public EventStatistics reportingEntryPublished(long expected) Specify the number of expected reporting entry publication events.
| |
| skipped | back to summary |
|---|---|
| public EventStatistics skipped(long expected) Specify the number of expected skipped events.
| |
| started | back to summary |
|---|---|
| public EventStatistics started(long expected) Specify the number of expected started events.
| |
| succeeded | back to summary |
|---|---|
| public EventStatistics succeeded(long expected) Specify the number of expected succeeded events.
| |