001: /* ===========================================================
002: * JFreeChart : a free chart library for the Java(tm) platform
003: * ===========================================================
004: *
005: * (C) Copyright 2000-2006, by Object Refinery Limited and Contributors.
006: *
007: * Project Info: http://www.jfree.org/jfreechart/index.html
008: *
009: * This library is free software; you can redistribute it and/or modify it
010: * under the terms of the GNU Lesser General Public License as published by
011: * the Free Software Foundation; either version 2.1 of the License, or
012: * (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful, but
015: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
016: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
017: * License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library; if not, write to the Free Software
021: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
022: * USA.
023: *
024: * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
025: * in the United States and other countries.]
026: *
027: * ---------------------
028: * PlotPackageTests.java
029: * ---------------------
030: * (C) Copyright 2003-2006, by Object Refinery Limited.
031: *
032: * Original Author: David Gilbert (for Object Refinery Limited);
033: * Contributor(s): -;
034: *
035: * $Id: PlotPackageTests.java,v 1.1.2.1 2006/10/03 15:41:28 mungady Exp $
036: *
037: * Changes:
038: * --------
039: * 18-Mar-2003 : Version 1 (DG);
040: * 09-Nov-2004 : Added tests for DonutPlot (DG);
041: * 19-Jan-2005 : Added main() method to run JUnit in text mode (DG);
042: * 06-Jun-2005 : Added PlotTests (DG);
043: * 16-Jun-2005 : Added MultiplePiePlotTests (DG);
044: * 19-Aug-2005 : Added CategoryMarkerTests (DG);
045: * 05-Sep-2006 : Added MarkerTests (DG);
046: *
047: */
048:
049: package org.jfree.chart.plot.junit;
050:
051: import junit.framework.Test;
052: import junit.framework.TestCase;
053: import junit.framework.TestSuite;
054:
055: /**
056: * A collection of tests for the org.jfree.chart.plot package.
057: * <P>
058: * These tests can be run using JUnit (http://www.junit.org).
059: */
060: public class PlotPackageTests extends TestCase {
061:
062: /**
063: * Returns a test suite to the JUnit test runner.
064: *
065: * @return The test suite.
066: */
067: public static Test suite() {
068: TestSuite suite = new TestSuite("org.jfree.chart.plot");
069: suite.addTestSuite(CategoryMarkerTests.class);
070: suite.addTestSuite(CategoryPlotTests.class);
071: suite.addTestSuite(ColorPaletteTests.class);
072: suite.addTestSuite(CombinedDomainCategoryPlotTests.class);
073: suite.addTestSuite(CombinedDomainXYPlotTests.class);
074: suite.addTestSuite(CombinedRangeCategoryPlotTests.class);
075: suite.addTestSuite(CombinedRangeXYPlotTests.class);
076: suite.addTestSuite(CompassPlotTests.class);
077: suite.addTestSuite(ContourPlotTests.class);
078: suite.addTestSuite(DefaultDrawingSupplierTests.class);
079: suite.addTestSuite(FastScatterPlotTests.class);
080: suite.addTestSuite(IntervalMarkerTests.class);
081: suite.addTestSuite(MarkerTests.class);
082: suite.addTestSuite(MeterIntervalTests.class);
083: suite.addTestSuite(MeterPlotTests.class);
084: suite.addTestSuite(MultiplePiePlotTests.class);
085: suite.addTestSuite(PiePlotTests.class);
086: suite.addTestSuite(PiePlot3DTests.class);
087: suite.addTestSuite(PlotOrientationTests.class);
088: suite.addTestSuite(PlotRenderingInfoTests.class);
089: suite.addTestSuite(PlotTests.class);
090: suite.addTestSuite(PolarPlotTests.class);
091: suite.addTestSuite(RingPlotTests.class);
092: suite.addTestSuite(SpiderWebPlotTests.class);
093: suite.addTestSuite(ThermometerPlotTests.class);
094: suite.addTestSuite(ValueMarkerTests.class);
095: suite.addTestSuite(XYPlotTests.class);
096: return suite;
097: }
098:
099: /**
100: * Constructs the test suite.
101: *
102: * @param name the suite name.
103: */
104: public PlotPackageTests(String name) {
105: super (name);
106: }
107:
108: /**
109: * Runs the test suite using JUnit's text-based runner.
110: *
111: * @param args ignored.
112: */
113: public static void main(String[] args) {
114: junit.textui.TestRunner.run(suite());
115: }
116:
117: }
|