* A series of tests for the equals() method.
*/
public void testEquals() {
// standard test
BoxAndWhiskerToolTipGenerator g1 = new BoxAndWhiskerToolTipGenerator();
BoxAndWhiskerToolTipGenerator g2 = new BoxAndWhiskerToolTipGenerator();
assertTrue(g1.equals(g2));
assertTrue(g2.equals(g1));
// tooltip format
g1 = new BoxAndWhiskerToolTipGenerator("{0} --> {1} {2}", new DecimalFormat("0.0"));
g2 = new BoxAndWhiskerToolTipGenerator("{1} {2}", new DecimalFormat("0.0"));
assertFalse(g1.equals(g2));
g2 = new BoxAndWhiskerToolTipGenerator("{0} --> {1} {2}", new DecimalFormat("0.0"));
assertTrue(g1.equals(g2));
// Y format
g1 = new BoxAndWhiskerToolTipGenerator("{0} --> {1} {2}", new DecimalFormat("0.0"));
g2 = new BoxAndWhiskerToolTipGenerator("{0} --> {1} {2}", new DecimalFormat("0.00"));
assertFalse(g1.equals(g2));
g2 = new BoxAndWhiskerToolTipGenerator("{0} --> {1} {2}", new DecimalFormat("0.0"));
assertTrue(g1.equals(g2));
}