NumberFormat xnf1 = new DecimalFormat("0.00");
NumberFormat xnf2 = new DecimalFormat("0.000");
NumberFormat ynf1 = new DecimalFormat("0.00");
NumberFormat ynf2 = new DecimalFormat("0.000");
StandardXYItemLabelGenerator g1 = null;
StandardXYItemLabelGenerator g2 = null;
g1 = new StandardXYItemLabelGenerator(f1, xnf1, ynf1);
g2 = new StandardXYItemLabelGenerator(f1, xnf1, ynf1);
assertTrue(g1.equals(g2));
assertTrue(g2.equals(g1));
g1 = new StandardXYItemLabelGenerator(f2, xnf1, ynf1);
assertFalse(g1.equals(g2));
g2 = new StandardXYItemLabelGenerator(f2, xnf1, ynf1);
assertTrue(g1.equals(g2));
g1 = new StandardXYItemLabelGenerator(f2, xnf2, ynf1);
assertFalse(g1.equals(g2));
g2 = new StandardXYItemLabelGenerator(f2, xnf2, ynf1);
assertTrue(g1.equals(g2));
g1 = new StandardXYItemLabelGenerator(f2, xnf2, ynf2);
assertFalse(g1.equals(g2));
g2 = new StandardXYItemLabelGenerator(f2, xnf2, ynf2);
assertTrue(g1.equals(g2));
DateFormat xdf1 = new SimpleDateFormat("d-MMM");
DateFormat xdf2 = new SimpleDateFormat("d-MMM-yyyy");
DateFormat ydf1 = new SimpleDateFormat("d-MMM");
DateFormat ydf2 = new SimpleDateFormat("d-MMM-yyyy");
g1 = new StandardXYItemLabelGenerator(f1, xdf1, ydf1);
g2 = new StandardXYItemLabelGenerator(f1, xdf1, ydf1);
assertTrue(g1.equals(g2));
assertTrue(g2.equals(g1));
g1 = new StandardXYItemLabelGenerator(f1, xdf2, ydf1);
assertFalse(g1.equals(g2));
g2 = new StandardXYItemLabelGenerator(f1, xdf2, ydf1);
assertTrue(g1.equals(g2));
g1 = new StandardXYItemLabelGenerator(f1, xdf2, ydf2);
assertFalse(g1.equals(g2));
g2 = new StandardXYItemLabelGenerator(f1, xdf2, ydf2);
assertTrue(g1.equals(g2));
}