コード例 #1
0
 @Test
 public void removesAnElementFromTheFront() {
   Circle s = new Circle(2.0);
   vector.add(s);
   assertTrue(vector.contains(s));
   vector.remove(s);
   assertFalse(vector.contains(s));
 }
コード例 #2
0
 @Test
 public void removesAnElementFromTheMiddle() {
   fillVector();
   Circle s = new Circle(2.0);
   vector.remove(s);
   assertFalse(vector.contains(s));
 }