From: <mu...@us...> - 2009-07-13 12:38:38
|
Revision: 2209 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=2209&view=rev Author: mungady Date: 2009-07-13 12:38:36 +0000 (Mon, 13 Jul 2009) Log Message: ----------- Updated. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/tests/org/jfree/chart/plot/junit/PiePlotTests.java Modified: branches/jfreechart-1.0.x-branch/tests/org/jfree/chart/plot/junit/PiePlotTests.java =================================================================== --- branches/jfreechart-1.0.x-branch/tests/org/jfree/chart/plot/junit/PiePlotTests.java 2009-07-13 12:38:15 UTC (rev 2208) +++ branches/jfreechart-1.0.x-branch/tests/org/jfree/chart/plot/junit/PiePlotTests.java 2009-07-13 12:38:36 UTC (rev 2209) @@ -2,7 +2,7 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * - * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. + * (C) Copyright 2000-2009, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/index.html * @@ -27,7 +27,7 @@ * ----------------- * PiePlotTests.java * ----------------- - * (C) Copyright 2003-2008, by Object Refinery Limited and Contributors. + * (C) Copyright 2003-2009, by Object Refinery Limited and Contributors. * * Original Author: David Gilbert (for Object Refinery Limited); * Contributor(s): -; @@ -39,7 +39,8 @@ * 27-Sep-2006 : Added tests for the getBaseSectionPaint() method (DG); * 23-Nov-2006 : Additional equals() and clone() tests (DG); * 17-Apr-2007 : Added check for label generator that returns a null label (DG); - * 31-Mar-2008 : Updated testEquals(); + * 31-Mar-2008 : Updated testEquals() (DG); + * 10-Jul-2009 : Updated testEquals() (DG); * */ @@ -76,6 +77,7 @@ import org.jfree.chart.plot.PiePlot; import org.jfree.chart.urls.CustomPieURLGenerator; import org.jfree.chart.urls.StandardPieURLGenerator; +import org.jfree.chart.util.DefaultShadowGenerator; import org.jfree.data.general.DefaultPieDataset; import org.jfree.data.general.PieDataset; import org.jfree.util.Rotation; @@ -435,6 +437,19 @@ assertFalse(plot1.equals(plot2)); plot2.setAutoPopulateSectionOutlineStroke(true); assertTrue(plot1.equals(plot2)); + + // shadowGenerator + plot1.setShadowGenerator(new DefaultShadowGenerator(5, Color.gray, + 0.6f, 4, -Math.PI / 4)); + assertFalse(plot1.equals(plot2)); + plot2.setShadowGenerator(new DefaultShadowGenerator(5, Color.gray, + 0.6f, 4, -Math.PI / 4)); + assertTrue(plot1.equals(plot2)); + + plot1.setShadowGenerator(null); + assertFalse(plot1.equals(plot2)); + plot2.setShadowGenerator(null); + assertTrue(plot1.equals(plot2)); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |