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