@Test public void addMoreThanTheInitialSize() { fillVector(); Circle s = new Circle(2.0); vector.add(s); assertEquals(s, vector.get(SortedShapeVector.capacityIncrement)); }
@Test public void addTwoElementsInSortedOrder() { Circle s1 = new Circle(2.0); Circle s2 = new Circle(1.0); vector.add(s2); vector.add(s1); assertEquals(s1, vector.get(0)); assertEquals(s2, vector.get(1)); }
@Test public void getsAnElement() { Circle s = new Circle(2.0); vector.add(s); assertEquals(s, vector.get(0)); }