Circle2D circle = new Circle2D(0.0, 0.0, 1.5);
assertNotNull(circle);
}
public void testGetSet() {
Circle2D circle = new Circle2D(10.0, 8.0, 5.0);
assertNotNull(circle);
assertEquals(10.0, circle.getX());
assertEquals(8.0, circle.getY());
assertEquals(5.0, circle.getRadius());
circle.setX(9.0);
assertEquals(9.0, circle.getX());
assertEquals(8.0, circle.getY());
assertEquals(5.0, circle.getRadius());
circle.setY(7.0);
assertEquals(9.0, circle.getX());
assertEquals(7.0, circle.getY());
assertEquals(5.0, circle.getRadius());
circle.setRadius(4.0);
assertEquals(9.0, circle.getX());
assertEquals(7.0, circle.getY());
assertEquals(4.0, circle.getRadius());
circle.setValues(8.0, -6.0, 9.0);
assertEquals(8.0, circle.getX());
assertEquals(-6.0, circle.getY());
assertEquals(9.0, circle.getRadius());
assertEquals(8.0, circle.getCenter().getX());
assertEquals(-6.0, circle.getCenter().getY());
}