public void incrementAndValidate() { this.matchedRequestCount++; if (getMatchedRequestCount() > getExpectedCount().getMaxCount()) { throw new AssertionError("No more calls expected."); } }
public void incrementAndValidate() { this.matchedRequestCount++; if (getMatchedRequestCount() > getExpectedCount().getMaxCount()) { throw new AssertionError("No more calls expected."); } }
public void incrementAndValidate() { this.matchedRequestCount++; if (getMatchedRequestCount() > getExpectedCount().getMaxCount()) { throw new AssertionError("No more calls expected."); } }
public boolean hasRemainingCount() { return (getMatchedRequestCount() < getExpectedCount().getMaxCount()); }
public boolean hasRemainingCount() { return (getMatchedRequestCount() < getExpectedCount().getMaxCount()); }
public boolean isSatisfied() { // Only validate min count since max count is checked on every request... return (getMatchedRequestCount() >= getExpectedCount().getMinCount()); } }
public boolean isSatisfied() { // Only validate min count since max count is checked on every request... return (getMatchedRequestCount() >= getExpectedCount().getMinCount()); } }
public boolean hasRemainingCount() { return (getMatchedRequestCount() < getExpectedCount().getMaxCount()); }
public boolean isSatisfied() { // Only validate min count since max count is checked on every request... return (getMatchedRequestCount() >= getExpectedCount().getMinCount()); } }