@Test public void testRemoveAll() throws URISyntaxException { FailoverUriPool pool = new FailoverUriPool(uris, null); assertEquals(uris.size(), pool.size()); pool.removeAll(); assertTrue(pool.isEmpty()); assertEquals(0, pool.size()); pool.removeAll(); }
public void removeAll() { synchronized (uris) { uris.clear(); } }
FailoverUriPool { public void removeAll() { synchronized (uris) { uris.clear(); } } }
FailoverUriPool { public void removeAll() { synchronized (uris) { uris.clear(); } } FailoverUriPool();  FailoverUriPool(List<URI> uris, Map<String, String> nestedOptions); }
FailoverUriPool { public void removeAll() { synchronized (uris) { uris.clear(); } } FailoverUriPool();  FailoverUriPool(List<URI> uris, Map<String, String> nestedOptions); int size(); boolean isEmpty(); URI getNext(); void connected(); boolean isRandomize(); void setRandomize(boolean random); void add(URI uri); void addAll(List<URI> additions); void addFirst(URI uri); boolean remove(URI uri); void removeAll(); void replaceAll(List<URI> replacements); List<URI> getList(); Map<String, String> getNestedOptions(); @Override String toString(); }
FailoverUriPool { public void removeAll() { synchronized (uris) { uris.clear(); } } FailoverUriPool();  FailoverUriPool(List<URI> uris, Map<String, String> nestedOptions); int size(); boolean isEmpty(); URI getNext(); void connected(); boolean isRandomize(); void setRandomize(boolean random); void add(URI uri); void addAll(List<URI> additions); void addFirst(URI uri); boolean remove(URI uri); void removeAll(); void replaceAll(List<URI> replacements); List<URI> getList(); Map<String, String> getNestedOptions(); @Override String toString(); static final boolean DEFAULT_RANDOMIZE_ENABLED; }