public class CountMatcher extends Object implements IntPredicate
| Constructor and Description |
|---|
CountMatcher(String description,
IntPredicate condition) |
| Modifier and Type | Method and Description |
|---|---|
static CountMatcher |
atLeast(int count)
Called the specified number of times or more.
|
static CountMatcher |
atMost(int count)
Called the specified number of times or less.
|
static CountMatcher |
never()
Never called.
|
static CountMatcher |
once()
Called exactly one time.
|
boolean |
test(int actual) |
static CountMatcher |
times(int count)
Called exactly the specified number of times.
|
String |
toString() |
static CountMatcher |
twice()
Called exactly two times.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, negate, orpublic CountMatcher(@Nonnull String description, @Nonnull IntPredicate condition)
public boolean test(int actual)
test in interface IntPredicatepublic static CountMatcher times(int count)
public static CountMatcher once()
public static CountMatcher twice()
public static CountMatcher never()
public static CountMatcher atLeast(int count)
public static CountMatcher atMost(int count)
Copyright © 2023. All rights reserved.