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