@Test public void testReset() { String zks1 = "zk1"; int timeout1 = 1000; ZooCache zc1 = zcf.getZooCache(zks1, timeout1); zcf.reset(); ZooCache zc1a = zcf.getZooCache(zks1, timeout1); assertNotSame(zc1, zc1a); }
void reset() { synchronized (instances) { instances.clear(); } }
ZooCacheFactory { void reset() { synchronized (instances) { instances.clear(); } } }
ZooCacheFactory { void reset() { synchronized (instances) { instances.clear(); } }  }
ZooCacheFactory { void reset() { synchronized (instances) { instances.clear(); } }  ZooCache getZooCache(String zooKeepers, int sessionTimeout); ZooCache getZooCache(String zooKeepers, int sessionTimeout, Watcher watcher); }
ZooCacheFactory { void reset() { synchronized (instances) { instances.clear(); } }  ZooCache getZooCache(String zooKeepers, int sessionTimeout); ZooCache getZooCache(String zooKeepers, int sessionTimeout, Watcher watcher);  }