/** Returns new Rectangle object with passed lat and long values */ public static Rectangle fromUpperLeftWidthHeight(int left, int top, int w, int h) /** Returns new Rectangle object with upper left (0, 0) and dimensions = 0 */ public static Rectangle newInstance() /** Returns nice display string for this Rectangle */ public String toString()
/** Returns new Point with x and y set from params */ public static Point fromXY(int aX, int aY) /** Returns new Point at origin (0, 0) */ public static Point newOrigin() /** Returns "nice string" of this Point */ public String toString()
+---src←classpath
| +---model | | +---shapes | | \---Rectangle.java←Unit | | \---FullName.java | +---test | | +---cases | | +---shapes | | \---RectangleTest.java←Unit
Test | | \---rectangle-bug-summary.txt←Bug summary
starter file
-- test_newInstance -- (left, top, right, bottom) = (0, 0, 0, 0) -- test_fromUpperLeftWidthHeight -- (left, top, right, bottom) = (100, 50, 110, 55)