Plotter { abstract void rmoveTo(int incrx, int incry); Plotter(); void drawBox(int w, int h); void drawBox(java.awt.Dimension d); void drawBox(java.awt.Rectangle r); Point getLocation(); final int MAXX; final int MAXY; }
@Test public void testRMoveTo() { p.moveTo(100, 100); p.rmoveTo(123, 456); assertEquals("abs move", new Point(223, 556), p.getLocation()); }