/**
* Check that the equals() method distinguishes all fields.
*/
public void testEquals() {
BarRenderer3D r1 = new BarRenderer3D(1.0, 2.0);
BarRenderer3D r2 = new BarRenderer3D(1.0, 2.0);
assertEquals(r1, r2);
r1 = new BarRenderer3D(1.1, 2.0);
assertFalse(r1.equals(r2));
r2 = new BarRenderer3D(1.1, 2.0);
assertTrue(r1.equals(r2));
r1 = new BarRenderer3D(1.1, 2.2);
assertFalse(r1.equals(r2));
r2 = new BarRenderer3D(1.1, 2.2);
assertTrue(r1.equals(r2));
r1.setWallPaint(new GradientPaint(1.0f, 2.0f, Color.red, 4.0f, 3.0f,
Color.blue));
assertFalse(r1.equals(r2));
r2.setWallPaint(new GradientPaint(1.0f, 2.0f, Color.red, 4.0f, 3.0f,
Color.blue));
assertTrue(r1.equals(r2));
}