/** 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); }
/** 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 getColor method, of class Pen. */ @Test public void testGetColor() { System.out.println("getColor"); instance = new Pen(new PApplet(), 1, 1, 1, 1); int expResult = 0; int result = instance.getColor(); assertEquals(expResult, result); }
/** Test of setColor method, of class Pen. */ @Test public void testSetColor() { System.out.println("setColor"); int col = -1; instance = new Pen(new PApplet(), 1, 1, 1, 1); instance.setColor(col); // TODO review the generated test code and remove the default call to fail. // fail("The test case is a prototype."); }
@Test public void testClone() { System.out.println("clone"); float len = 5.0F; instance = new Pen(new PApplet(), 1, 1, 1, 1); Object fred = instance.clone(); assertNotNull(fred); // System.out.print((Pen)fred); }