@Test void isReadyReturnsFalseIfJzonbieIsDown() throws Exception { final boolean got = brokenClient.isReady(); assertThat(got).isFalse(); }
public boolean isReady() { final HttpUriRequest readyRequest = apacheJzonbieRequestFactory.createReadyRequest(); try(CloseableHttpResponse response = httpClient.execute(readyRequest)) { return true; } catch (Exception e) { return false; } }
ApacheJzonbieHttpClient implements JzonbieClient { public boolean isReady() { final HttpUriRequest readyRequest = apacheJzonbieRequestFactory.createReadyRequest(); try(CloseableHttpResponse response = httpClient.execute(readyRequest)) { return true; } catch (Exception e) { return false; } } }
ApacheJzonbieHttpClient implements JzonbieClient { public boolean isReady() { final HttpUriRequest readyRequest = apacheJzonbieRequestFactory.createReadyRequest(); try(CloseableHttpResponse response = httpClient.execute(readyRequest)) { return true; } catch (Exception e) { return false; } } ApacheJzonbieHttpClient(String zombieBaseUrl);  ApacheJzonbieHttpClient(String zombieBaseUrl,
                                   String zombieHeaderName);  ApacheJzonbieHttpClient(CloseableHttpClient httpClient,
                                   ApacheJzonbieRequestFactory apacheJzonbieRequestFactory,
                                   Deserializer deserializer); }
ApacheJzonbieHttpClient implements JzonbieClient { public boolean isReady() { final HttpUriRequest readyRequest = apacheJzonbieRequestFactory.createReadyRequest(); try(CloseableHttpResponse response = httpClient.execute(readyRequest)) { return true; } catch (Exception e) { return false; } } 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 { public boolean isReady() { final HttpUriRequest readyRequest = apacheJzonbieRequestFactory.createReadyRequest(); try(CloseableHttpResponse response = httpClient.execute(readyRequest)) { return true; } catch (Exception e) { return false; } } 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();  }