Class CountMatcher

java.lang.Object
org.grpcmock.definitions.verification.CountMatcher
All Implemented Interfaces:
IntPredicate

public class CountMatcher extends Object implements IntPredicate
Author:
Fadelis
  • Constructor Details

  • Method Details

    • test

      public boolean test(int actual)
      Specified by:
      test in interface IntPredicate
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • times

      public static CountMatcher times(int count)
      Called exactly the specified number of times.
    • once

      public static CountMatcher once()
      Called exactly one time.
    • twice

      public static CountMatcher twice()
      Called exactly two times.
    • never

      public static CountMatcher never()
      Never called.
    • atLeast

      public static CountMatcher atLeast(int count)
      Called the specified number of times or more.
    • atMost

      public static CountMatcher atMost(int count)
      Called the specified number of times or less.