@Test void verifyThrowsVerificationExceptionIfCallVerificationCriteriaIsFalse(Jzonbie jzonbie) throws Exception { final AppRequest request = get("/"); callJzonbieWithRequest(3, jzonbie, request, ok().withBody(objectBody(singletonMap("key", "val"))), true); assertThatThrownBy(() -> jzonbie.verify(request, equalTo(2))) .isExactlyInstanceOf(VerificationException.class) .hasMessageContaining("3") .hasMessageContaining("equal to 2"); }
@Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final int count = callHistory.count(request); criteria.verify(count); }
Jzonbie implements JzonbieClient { @Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final int count = callHistory.count(request); criteria.verify(count); } }
Jzonbie implements JzonbieClient { @Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final int count = callHistory.count(request); criteria.verify(count); } Jzonbie();  Jzonbie(JzonbieOptions options); }
Jzonbie implements JzonbieClient { @Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final int count = callHistory.count(request); criteria.verify(count); } Jzonbie();  Jzonbie(JzonbieOptions options); int getHttpPort(); int getHttpsPort(); @Override KeyStore getTruststore(); @Override void prime(AppRequest request, AppResponse response); @Override void prime(File file); @Override void prime(AppRequest request, DefaultAppResponse defaultAppResponse); @Override List<PrimedMapping> getCurrentPriming(); @Override List<Exchange> getHistory(); @Override List<AppRequest> getFailedRequests(); @Override void verify(AppRequest request, InvocationVerificationCriteria criteria); @Override void reset(); void stop(); }
Jzonbie implements JzonbieClient { @Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final int count = callHistory.count(request); criteria.verify(count); } Jzonbie();  Jzonbie(JzonbieOptions options); int getHttpPort(); int getHttpsPort(); @Override KeyStore getTruststore(); @Override void prime(AppRequest request, AppResponse response); @Override void prime(File file); @Override void prime(AppRequest request, DefaultAppResponse defaultAppResponse); @Override List<PrimedMapping> getCurrentPriming(); @Override List<Exchange> getHistory(); @Override List<AppRequest> getFailedRequests(); @Override void verify(AppRequest request, InvocationVerificationCriteria criteria); @Override void reset(); void stop();  }