/**
* Check that the equals() method distinguishes all fields.
*/
public void testEquals() {
GradientBarPainter p1 = new GradientBarPainter(0.1, 0.2, 0.3);
GradientBarPainter p2 = new GradientBarPainter(0.1, 0.2, 0.3);
assertEquals(p1, p2);
p1 = new GradientBarPainter(0.11, 0.2, 0.3);
assertFalse(p1.equals(p2));
p2 = new GradientBarPainter(0.11, 0.2, 0.3);
assertTrue(p1.equals(p2));
p1 = new GradientBarPainter(0.11, 0.22, 0.3);
assertFalse(p1.equals(p2));
p2 = new GradientBarPainter(0.11, 0.22, 0.3);
assertTrue(p1.equals(p2));
p1 = new GradientBarPainter(0.11, 0.22, 0.33);
assertFalse(p1.equals(p2));
p2 = new GradientBarPainter(0.11, 0.22, 0.33);
assertTrue(p1.equals(p2));
}