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()
-
-