/**
* Some checks for the equals() method.
*/
public void testEquals() {
RingPlot plot1 = new RingPlot(null);
RingPlot plot2 = new RingPlot(null);
assertTrue(plot1.equals(plot2));
assertTrue(plot2.equals(plot1));
// separatorsVisible
plot1.setSeparatorsVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setSeparatorsVisible(false);
assertTrue(plot1.equals(plot2));
// separatorStroke
Stroke s = new BasicStroke(1.1f);
plot1.setSeparatorStroke(s);
assertFalse(plot1.equals(plot2));
plot2.setSeparatorStroke(s);
assertTrue(plot1.equals(plot2));
// separatorPaint
plot1.setSeparatorPaint(new GradientPaint(1.0f, 2.0f, Color.red,
2.0f, 1.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setSeparatorPaint(new GradientPaint(1.0f, 2.0f, Color.red,
2.0f, 1.0f, Color.blue));
assertTrue(plot1.equals(plot2));
// innerSeparatorExtension
plot1.setInnerSeparatorExtension(0.01);
assertFalse(plot1.equals(plot2));
plot2.setInnerSeparatorExtension(0.01);
assertTrue(plot1.equals(plot2));
// outerSeparatorExtension
plot1.setOuterSeparatorExtension(0.02);
assertFalse(plot1.equals(plot2));
plot2.setOuterSeparatorExtension(0.02);
assertTrue(plot1.equals(plot2));
}