@Test void verifyThrowsVerificationExceptionWhenVerificationIsFalseAndNoCriteriaIsPassedIn() { assertThatThrownBy(() -> underTest.verify(REQUEST)) .isInstanceOf(VerificationException.class) .hasMessageContaining("0") .hasMessageContaining("equal to 1"); }
@Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final HttpUriRequest verifyRequest = apacheJzonbieRequestFactory.createVerifyRequest(request); final CountResult count = execute( verifyRequest, httpResponse -> deserializer.deserialize(getHttpResponseBody(httpResponse), CountResult.class), "Failed to get app request count." ); criteria.verify(count.getCount()); }
ApacheJzonbieHttpClient implements JzonbieClient { @Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final HttpUriRequest verifyRequest = apacheJzonbieRequestFactory.createVerifyRequest(request); final CountResult count = execute( verifyRequest, httpResponse -> deserializer.deserialize(getHttpResponseBody(httpResponse), CountResult.class), "Failed to get app request count." ); criteria.verify(count.getCount()); } }
ApacheJzonbieHttpClient implements JzonbieClient { @Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final HttpUriRequest verifyRequest = apacheJzonbieRequestFactory.createVerifyRequest(request); final CountResult count = execute( verifyRequest, httpResponse -> deserializer.deserialize(getHttpResponseBody(httpResponse), CountResult.class), "Failed to get app request count." ); criteria.verify(count.getCount()); } ApacheJzonbieHttpClient(String zombieBaseUrl);  ApacheJzonbieHttpClient(String zombieBaseUrl,
                                   String zombieHeaderName);  ApacheJzonbieHttpClient(CloseableHttpClient httpClient,
                                   ApacheJzonbieRequestFactory apacheJzonbieRequestFactory,
                                   Deserializer deserializer); }
ApacheJzonbieHttpClient implements JzonbieClient { @Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final HttpUriRequest verifyRequest = apacheJzonbieRequestFactory.createVerifyRequest(request); final CountResult count = execute( verifyRequest, httpResponse -> deserializer.deserialize(getHttpResponseBody(httpResponse), CountResult.class), "Failed to get app request count." ); criteria.verify(count.getCount()); } ApacheJzonbieHttpClient(String zombieBaseUrl);  ApacheJzonbieHttpClient(String zombieBaseUrl,
                                   String zombieHeaderName);  ApacheJzonbieHttpClient(CloseableHttpClient httpClient,
                                   ApacheJzonbieRequestFactory apacheJzonbieRequestFactory,
                                   Deserializer deserializer); @Override void prime(AppRequest request, AppResponse response); @Override void prime(File file); @Override void prime(AppRequest request, DefaultAppResponse response); @Override List<PrimedMapping> getCurrentPriming(); @Override List<Exchange> getHistory(); @Override List<AppRequest> getFailedRequests(); @Override void verify(AppRequest request, InvocationVerificationCriteria criteria); @Override void reset(); @Override KeyStore getTruststore(); boolean isReady(); }
ApacheJzonbieHttpClient implements JzonbieClient { @Override public void verify(AppRequest request, InvocationVerificationCriteria criteria) throws VerificationException { final HttpUriRequest verifyRequest = apacheJzonbieRequestFactory.createVerifyRequest(request); final CountResult count = execute( verifyRequest, httpResponse -> deserializer.deserialize(getHttpResponseBody(httpResponse), CountResult.class), "Failed to get app request count." ); criteria.verify(count.getCount()); } ApacheJzonbieHttpClient(String zombieBaseUrl);  ApacheJzonbieHttpClient(String zombieBaseUrl,
                                   String zombieHeaderName);  ApacheJzonbieHttpClient(CloseableHttpClient httpClient,
                                   ApacheJzonbieRequestFactory apacheJzonbieRequestFactory,
                                   Deserializer deserializer); @Override void prime(AppRequest request, AppResponse response); @Override void prime(File file); @Override void prime(AppRequest request, DefaultAppResponse response); @Override List<PrimedMapping> getCurrentPriming(); @Override List<Exchange> getHistory(); @Override List<AppRequest> getFailedRequests(); @Override void verify(AppRequest request, InvocationVerificationCriteria criteria); @Override void reset(); @Override KeyStore getTruststore(); boolean isReady();  }