Package io.vertx.junit5
Class CountingCheckpoint
- java.lang.Object
-
- io.vertx.junit5.CountingCheckpoint
-
- All Implemented Interfaces:
Checkpoint
public final class CountingCheckpoint extends Object implements Checkpoint
Checkpoints that count the number of flag invocations.- Author:
- Julien Ponge
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StackTraceElementcreationCallSite()voidflag()Flags the checkpoint.static CountingCheckpointlaxCountingCheckpointβ(Consumer<Checkpoint> satisfactionTrigger, int requiredNumberOfPasses)booleansatisfied()static CountingCheckpointstrictCountingCheckpointβ(Consumer<Checkpoint> satisfactionTrigger, Consumer<Throwable> overuseTrigger, int requiredNumberOfPasses)
-
-
-
Method Detail
-
laxCountingCheckpoint
public static CountingCheckpoint laxCountingCheckpointβ(Consumer<Checkpoint> satisfactionTrigger, int requiredNumberOfPasses)
-
strictCountingCheckpoint
public static CountingCheckpoint strictCountingCheckpointβ(Consumer<Checkpoint> satisfactionTrigger, Consumer<Throwable> overuseTrigger, int requiredNumberOfPasses)
-
flag
public void flag()
Description copied from interface:CheckpointFlags the checkpoint.- Specified by:
flagin interfaceCheckpoint
-
satisfied
public boolean satisfied()
-
creationCallSite
public StackTraceElement creationCallSite()
-
-