/**
* Problem that the equals(...) method distinguishes all fields.
*/
public void testEquals() {
XYBoxAndWhiskerRenderer r1 = new XYBoxAndWhiskerRenderer();
XYBoxAndWhiskerRenderer r2 = new XYBoxAndWhiskerRenderer();
assertEquals(r1, r2);
r1.setPaint(Color.yellow);
assertFalse(r1.equals(r2));
r2.setPaint(Color.yellow);
assertEquals(r1, r2);
r1.setArtifactPaint(Color.yellow);
assertFalse(r1.equals(r2));
r2.setArtifactPaint(Color.yellow);
assertEquals(r1, r2);
r1.setBoxWidth(0.55);
assertFalse(r1.equals(r2));
r2.setBoxWidth(0.55);
assertEquals(r1, r2);
r1.setFillBox(!r1.getFillBox());
assertFalse(r1.equals(r2));
r2.setFillBox(!r2.getFillBox());
assertEquals(r1, r2);
}