* Confirm that cloning works.
*/
public void testCloning2() {
BarRenderer r1 = new BarRenderer();
r1.setLabelGenerator(new IntervalCategoryLabelGenerator());
BarRenderer r2 = null;
try {
r2 = (BarRenderer) r1.clone();
}
catch (CloneNotSupportedException e) {
System.err.println("AbstractCategoryItemRendererTests.testCloning: failed to clone.");
}
assertTrue(r1 != r2);
assertTrue(r1.getClass() == r2.getClass());
assertTrue(r1.equals(r2));
r1 = new BarRenderer();
r1.setSeriesLabelGenerator(0, new IntervalCategoryLabelGenerator());
r2 = null;
try {
r2 = (BarRenderer) r1.clone();
}
catch (CloneNotSupportedException e) {
System.err.println("AbstractCategoryItemRendererTests.testCloning: failed to clone.");
}
assertTrue(r1 != r2);
assertTrue(r1.getClass() == r2.getClass());
assertTrue(r1.equals(r2));
r1 = new BarRenderer();
r1.setBaseLabelGenerator(new IntervalCategoryLabelGenerator());
r2 = null;
try {
r2 = (BarRenderer) r1.clone();
}
catch (CloneNotSupportedException e) {