@Test public void testReset() throws InterruptedException { int count = 2; CountDownLatch2 latch = new CountDownLatch2(count); latch.countDown(); assertEquals("Expected equal", count - 1, latch.getCount()); latch.reset(); assertEquals("Expected equal", count, latch.getCount()); latch.countDown(); latch.countDown(); latch.await(); assertEquals("Expected equal", 0, latch.getCount()); latch.countDown(); assertEquals("Expected equal", 0, latch.getCount()); }
public void reset() { sync.reset(); }
CountDownLatch2 { public void reset() { sync.reset(); } }
CountDownLatch2 { public void reset() { sync.reset(); } CountDownLatch2(int count); }
CountDownLatch2 { public void reset() { sync.reset(); } CountDownLatch2(int count); void await(); boolean await(long timeout, TimeUnit unit); void countDown(); long getCount(); void reset(); String toString(); }
CountDownLatch2 { public void reset() { sync.reset(); } CountDownLatch2(int count); void await(); boolean await(long timeout, TimeUnit unit); void countDown(); long getCount(); void reset(); String toString();  }