Ellipse extends AbstractShape { public Ellipse setMinorRadius(double radius) { if (radius < 0) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "Ellipse", "setMinorRadius", "invalidRadius")); } this.minorRadius = radius; this.reset(); return this; } Ellipse();  Ellipse(ShapeAttributes attributes);  Ellipse(Position center, double majorRadius, double minorRadius);  Ellipse(Position center, double majorRadius, double minorRadius, ShapeAttributes attributes); Position getCenter(); Ellipse setCenter(Position position); double getMajorRadius(); Ellipse setMajorRadius(double radius); double getMinorRadius(); Ellipse setMinorRadius(double radius); double getHeading(); Ellipse setHeading(double degrees); boolean isExtrude(); Ellipse setExtrude(boolean extrude); boolean isFollowTerrain(); Ellipse setFollowTerrain(boolean followTerrain); int getMaximumIntervals(); Ellipse setMaximumIntervals(int numIntervals);  }
@Test public void testMinorRadiusSetterValid() { Ellipse ellipse = new Ellipse(); double minorRadius = 15000; ellipse.setMinorRadius(minorRadius); assertEquals("minor radius setter valid", minorRadius, ellipse.minorRadius, 1e-9); }
@Test public void testMinorRadiusSetterError() { Ellipse ellipse = new Ellipse(); try { ellipse.setMinorRadius(-1); fail("invalid setter value for minor radius"); } catch (Exception ex) { assertTrue("minor radius invalid setter exception type", ex instanceof IllegalArgumentException); } }