Class 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 Detail

      • laxCountingCheckpoint

        public static CountingCheckpoint laxCountingCheckpoint​(java.util.function.Consumer<Checkpoint> satisfactionTrigger,
                                                               int requiredNumberOfPasses)
      • strictCountingCheckpoint

        public static CountingCheckpoint strictCountingCheckpoint​(java.util.function.Consumer<Checkpoint> satisfactionTrigger,
                                                                  java.util.function.Consumer<Throwable> overuseTrigger,
                                                                  int requiredNumberOfPasses)
      • flag

        public void flag()
        Description copied from interface: Checkpoint
        Flags the checkpoint.
        Specified by:
        flag in interface Checkpoint
      • satisfied

        public boolean satisfied()