Plotter { abstract void moveTo(int absx, int absy); 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 testMoveTo() { p.moveTo(123, 456); assertEquals("abs move", new Point(123, 456), p.getLocation()); }