Пример #1
0
 @Test
 public void testClear() {
   ring.clear();
   assertEquals(0, ring.getCurrentSize());
   assertTrue(ring.isEmpty());
 }
Пример #2
0
 @Test
 public void testIsEmpty() {
   assertFalse(ring.isEmpty());
   ring.clear();
   assertTrue(ring.isEmpty());
 }