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