/**
* Test that the equals() method distinguishes all fields.
*/
public void testEquals() {
LineAndShapeRenderer r1 = new LineAndShapeRenderer();
LineAndShapeRenderer r2 = new LineAndShapeRenderer();
assertEquals(r1, r2);
r1.setBaseLinesVisible(!r1.getBaseLinesVisible());
assertFalse(r1.equals(r2));
r2.setBaseLinesVisible(r1.getBaseLinesVisible());
assertTrue(r1.equals(r2));
r1.setSeriesLinesVisible(1, true);
assertFalse(r1.equals(r2));
r2.setSeriesLinesVisible(1, true);
assertTrue(r1.equals(r2));
r1.setLinesVisible(false);
assertFalse(r1.equals(r2));
r2.setLinesVisible(false);
assertTrue(r1.equals(r2));
r1.setBaseShapesVisible(!r1.getBaseShapesVisible());
assertFalse(r1.equals(r2));
r2.setBaseShapesVisible(r1.getBaseShapesVisible());
assertTrue(r1.equals(r2));
r1.setSeriesShapesVisible(1, true);
assertFalse(r1.equals(r2));
r2.setSeriesShapesVisible(1, true);
assertTrue(r1.equals(r2));
r1.setShapesVisible(false);
assertFalse(r1.equals(r2));
r2.setShapesVisible(false);
assertTrue(r1.equals(r2));
r1.setShapesFilled(false);
assertFalse(r1.equals(r2));
r2.setShapesFilled(false);
assertTrue(r1.equals(r2));
r1.setSeriesShapesFilled(1, true);
assertFalse(r1.equals(r2));
r2.setSeriesShapesFilled(1, true);
assertTrue(r1.equals(r2));
r1.setBaseShapesFilled(false);
assertFalse(r1.equals(r2));
r2.setBaseShapesFilled(false);
assertTrue(r1.equals(r2));
r1.setUseOutlinePaint(true);
assertFalse(r1.equals(r2));
r2.setUseOutlinePaint(true);
assertTrue(r1.equals(r2));
r1.setUseSeriesOffset(true);
assertFalse(r1.equals(r2));
r2.setUseSeriesOffset(true);
assertTrue(r1.equals(r2));
r1.setItemMargin(0.14);
assertFalse(r1.equals(r2));
r2.setItemMargin(0.14);
assertTrue(r1.equals(r2));
}