示例#1
0
 @Before
 public void before() {
   Circle circle = new Circle("Circle", 10);
   Triangle triangle = new Triangle("Triangle", 10, 10);
   Square square = new Square("Square", 10);
   manager.add(circle);
   manager.add(triangle);
   manager.add(square);
 }
示例#2
0
 @Test
 public void testTotalNumberOfSides() {
   assertEquals(manager.totalNumberOfSides(), Double.POSITIVE_INFINITY, 10e-2);
 }
示例#3
0
 @Test
 public void testTotalArea() {
   assertEquals(manager.totalArea(), 464.16, 10e-2);
 }