@Test void getTruststoreThrowsExceptionIfKeystoreIsPassedIn() { new Jzonbie(options().withHttps(httpsOptions().withKeystoreLocation(getResource("test.jks").toString()).withKeystorePassword("jzonbie"))); assertThatThrownBy(() -> underTest.getTruststore()) .isInstanceOf(JzonbieClientException.class) .hasMessageContaining("Failed to obtain truststore"); }
@Override public KeyStore getTruststore() { final HttpUriRequest truststoreRequest = apacheJzonbieRequestFactory.createTruststoreRequest(); return execute( truststoreRequest, this::convertBytesToKeystore, "Failed to obtain truststore." ); }
ApacheJzonbieHttpClient implements JzonbieClient { @Override public KeyStore getTruststore() { final HttpUriRequest truststoreRequest = apacheJzonbieRequestFactory.createTruststoreRequest(); return execute( truststoreRequest, this::convertBytesToKeystore, "Failed to obtain truststore." ); } }
ApacheJzonbieHttpClient implements JzonbieClient { @Override public KeyStore getTruststore() { final HttpUriRequest truststoreRequest = apacheJzonbieRequestFactory.createTruststoreRequest(); return execute( truststoreRequest, this::convertBytesToKeystore, "Failed to obtain truststore." ); } ApacheJzonbieHttpClient(String zombieBaseUrl);  ApacheJzonbieHttpClient(String zombieBaseUrl,
                                   String zombieHeaderName);  ApacheJzonbieHttpClient(CloseableHttpClient httpClient,
                                   ApacheJzonbieRequestFactory apacheJzonbieRequestFactory,
                                   Deserializer deserializer); }
ApacheJzonbieHttpClient implements JzonbieClient { @Override public KeyStore getTruststore() { final HttpUriRequest truststoreRequest = apacheJzonbieRequestFactory.createTruststoreRequest(); return execute( truststoreRequest, this::convertBytesToKeystore, "Failed to obtain truststore." ); } 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 KeyStore getTruststore() { final HttpUriRequest truststoreRequest = apacheJzonbieRequestFactory.createTruststoreRequest(); return execute( truststoreRequest, this::convertBytesToKeystore, "Failed to obtain truststore." ); } 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();  }