@Test public void testClearAllInstances() throws Exception { ParsecAsyncHttpClientFactory.getInstance(builder1); ParsecAsyncHttpClientFactory.getInstance(builder2); Map instanceMap = ParsecAsyncHttpClientFactory.getInstanceMap(); assertEquals(instanceMap.size(), 2); ParsecAsyncHttpClientFactory.clearAllInstances(); assertEquals(instanceMap.size(), 0); }
public static void clearAllInstances() { clientMap.clear(); }
ParsecAsyncHttpClientFactory { public static void clearAllInstances() { clientMap.clear(); } }
ParsecAsyncHttpClientFactory { public static void clearAllInstances() { clientMap.clear(); } private  ParsecAsyncHttpClientFactory(); }
ParsecAsyncHttpClientFactory { public static void clearAllInstances() { clientMap.clear(); } private  ParsecAsyncHttpClientFactory(); static ParsecAsyncHttpClient getInstance(final ParsecAsyncHttpClient.Builder builder); static ParsecAsyncHttpClient removeInstance(final ParsecAsyncHttpClient.Builder builder); static void clearAllInstances(); }
ParsecAsyncHttpClientFactory { public static void clearAllInstances() { clientMap.clear(); } private  ParsecAsyncHttpClientFactory(); static ParsecAsyncHttpClient getInstance(final ParsecAsyncHttpClient.Builder builder); static ParsecAsyncHttpClient removeInstance(final ParsecAsyncHttpClient.Builder builder); static void clearAllInstances();  }