Ejemplo n.º 1
0
 @Test
 public void testRemoveT() {
   assertTrue(ring.contains("Per"));
   ring.remove("Per");
   assertFalse(ring.contains("Per"));
   assertEquals(2, ring.getCurrentSize());
 }
Ejemplo n.º 2
0
 @Test
 public void testClear() {
   ring.clear();
   assertEquals(0, ring.getCurrentSize());
   assertTrue(ring.isEmpty());
 }
Ejemplo n.º 3
0
 @Test
 public void testGetCurrentSize() {
   assertEquals(3, ring.getCurrentSize());
   ring.add("Lis");
   assertEquals(4, ring.getCurrentSize());
 }