@Test public void safeShutdown_shouldShutdownHttpClient() throws Exception { HttpClients.safeShutdown(httpClient); ThreadUtils.pause(HTTP_CLIENT_SHUTDOWN_TIME); verify(clientConnectionManager).shutdown(); }
public static void safeShutdown(final HttpClient httpClient) { new Thread(new Runnable() { @Override public void run() { if (httpClient != null && httpClient.getConnectionManager() != null) { httpClient.getConnectionManager().shutdown(); } } }).start(); }
HttpClients { public static void safeShutdown(final HttpClient httpClient) { new Thread(new Runnable() { @Override public void run() { if (httpClient != null && httpClient.getConnectionManager() != null) { httpClient.getConnectionManager().shutdown(); } } }).start(); } }
HttpClients { public static void safeShutdown(final HttpClient httpClient) { new Thread(new Runnable() { @Override public void run() { if (httpClient != null && httpClient.getConnectionManager() != null) { httpClient.getConnectionManager().shutdown(); } } }).start(); }  }
HttpClients { public static void safeShutdown(final HttpClient httpClient) { new Thread(new Runnable() { @Override public void run() { if (httpClient != null && httpClient.getConnectionManager() != null) { httpClient.getConnectionManager().shutdown(); } } }).start(); }  static void safeShutdown(final HttpClient httpClient); }
HttpClients { public static void safeShutdown(final HttpClient httpClient) { new Thread(new Runnable() { @Override public void run() { if (httpClient != null && httpClient.getConnectionManager() != null) { httpClient.getConnectionManager().shutdown(); } } }).start(); }  static void safeShutdown(final HttpClient httpClient);  }