/** Test of setLength method, of class Pen. */ @Test public void testSetLength() { System.out.println("setLength"); float len = 5.0F; instance = new Pen(new PApplet(), 1, 1, 1, 1); instance.setLength(len); }
/** Test of getLength method, of class Pen. */ @Test public void testGetLength() { System.out.println("getLength"); float len = 5.0F; instance = new Pen(new PApplet(), 1, 1, 1, 1); instance.setLength(len); float expResult = 5.0F; float result = instance.getLength(); assertEquals(expResult, result, 5.0); }