/** Test if returned color is white when size is <code>255</code>. */ @Test public void testRedColor() { final Bug bug = new Bug(); bug.setSize(255); final Color color = style.getColor(bug); Assert.assertEquals(Color.RED, color); }
/** Test if returned color is white when size is (intermediate state). */ @Test public void testPinkColor() { final Bug bug = new Bug(); bug.setSize(80); final Color color = style.getColor(bug); Assert.assertEquals(Color.PINK, color); }
/** Test if returned color is white when size is <code>0</code>. */ @Test public void testWhiteColor() { final Bug bug = new Bug(); bug.setSize(0); final Color color = style.getColor(bug); Assert.assertEquals(Color.WHITE, color); }