/** * Tests the equals method. */ public void testEquals() { SymbolicXYItemLabelGenerator g1 = new SymbolicXYItemLabelGenerator(); SymbolicXYItemLabelGenerator g2 = new SymbolicXYItemLabelGenerator(); assertTrue(g1.equals(g2)); assertTrue(g2.equals(g1)); }
/** * Simple check that hashCode is implemented. */ public void testHashCode() { SymbolicXYItemLabelGenerator g1 = new SymbolicXYItemLabelGenerator(); SymbolicXYItemLabelGenerator g2 = new SymbolicXYItemLabelGenerator(); assertTrue(g1.equals(g2)); assertTrue(g1.hashCode() == g2.hashCode()); }
/** * Check to ensure that this class implements PublicCloneable. */ public void testPublicCloneable() { SymbolicXYItemLabelGenerator g1 = new SymbolicXYItemLabelGenerator(); assertTrue(g1 instanceof PublicCloneable); }