Class CountMatcher
java.lang.Object
org.grpcmock.definitions.verification.CountMatcher
- All Implemented Interfaces:
IntPredicate
- Author:
- Fadelis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CountMatcheratLeast(int count) Called the specified number of times or more.static CountMatcheratMost(int count) Called the specified number of times or less.static CountMatchernever()Never called.static CountMatcheronce()Called exactly one time.booleantest(int actual) static CountMatchertimes(int count) Called exactly the specified number of times.toString()static CountMatchertwice()Called exactly two times.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.IntPredicate
and, negate, or
-
Constructor Details
-
CountMatcher
-
-
Method Details
-
test
public boolean test(int actual) - Specified by:
testin interfaceIntPredicate
-
toString
-
times
Called exactly the specified number of times. -
once
Called exactly one time. -
twice
Called exactly two times. -
never
Never called. -
atLeast
Called the specified number of times or more. -
atMost
Called the specified number of times or less.
-