/**
* Check that the equals() method distinguishes all fields.
*/
public void testEquals() {
MinMaxCategoryRenderer r1 = new MinMaxCategoryRenderer();
MinMaxCategoryRenderer r2 = new MinMaxCategoryRenderer();
assertEquals(r1, r2);
r1.setDrawLines(true);
assertFalse(r1.equals(r2));
r2.setDrawLines(true);
assertTrue(r1.equals(r2));
r1.setGroupPaint(new GradientPaint(1.0f, 2.0f, Color.red, 3.0f, 4.0f,
Color.yellow));
assertFalse(r1.equals(r2));
r2.setGroupPaint(new GradientPaint(1.0f, 2.0f, Color.red, 3.0f, 4.0f,
Color.yellow));
assertTrue(r1.equals(r2));
r1.setGroupStroke(new BasicStroke(1.2f));
assertFalse(r1.equals(r2));
r2.setGroupStroke(new BasicStroke(1.2f));
assertTrue(r1.equals(r2));
}