MCPcopy Index your code
hub / github.com/OpenFeign/feign / verifyStatus

Method verifyStatus

mock/src/main/java/feign/mock/MockClient.java:326–333  ·  view source on GitHub ↗

To be called in an @After method: @After public void tearDown() { mockClient.verifyStatus(); }

()

Source from the content-addressed store, hash-verified

324 * </pre>
325 */
326 public void verifyStatus() {
327 if (sequential) {
328 boolean unopenedIterator = responseIterator == null && !responses.isEmpty();
329 if (unopenedIterator || responseIterator.hasNext()) {
330 throw new VerificationAssertionError("More executions were expected");
331 }
332 }
333 }
334
335 public void resetRequests() {
336 requests.clear();

Callers 6

hitMockMethod · 0.80
paramsEncodingMethod · 0.80
verifyInvocationMethod · 0.80
sequentialRequestsMethod · 0.80

Calls 2

isEmptyMethod · 0.80
hasNextMethod · 0.45

Tested by 6

hitMockMethod · 0.64
paramsEncodingMethod · 0.64
verifyInvocationMethod · 0.64
sequentialRequestsMethod · 0.64