001: /* ===========================================================
002: * JFreeChart : a free chart library for the Java(tm) platform
003: * ===========================================================
004: *
005: * (C) Copyright 2000-2007, 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: * JFreeChartTestSuite.java
029: * ------------------------
030: * (C) Copyright 2002-2007, by Object Refinery Limited.
031: *
032: * Original Author: David Gilbert (for Object Refinery Limited);
033: * Contributor(s): -;
034: *
035: * $Id: JFreeChartTestSuite.java,v 1.1.2.2 2007/01/26 12:23:06 mungady Exp $
036: *
037: * Changes:
038: * --------
039: * 11-Jun-2002 : Version 1 (DG);
040: * 30-Sep-2002 : Added tests for com.jrefinery.data (DG);
041: * 17-Oct-2002 : Fixed errors reported by Checkstyle (DG);
042: * 13-Mar-2003 : Added tests for new com.jrefinery.data.time package (DG);
043: * 17-Feb-2004 : Added tests for org.jfree.chart.title package (DG);
044: * 20-May-2004 : Added tests for org.jfree.chart.entity package (DG);
045: * 30-Jul-2004 : Added tests for org.jfree.data.gantt package (DG);
046: * 23-Aug-2004 : Restructured org.jfree.data (DG);
047: * 18-Jan-2005 : Added main() method (DG);
048: * 08-Jun-2005 : Added tests for org.jfree.chart.needle package (DG);
049: * 26-Jan-2007 : Added tests for org.jfree.data.time.ohlc package (DG);
050: *
051: */
052:
053: package org.jfree.chart.junit;
054:
055: import junit.framework.Test;
056: import junit.framework.TestCase;
057: import junit.framework.TestSuite;
058:
059: import org.jfree.chart.annotations.junit.AnnotationsPackageTests;
060: import org.jfree.chart.axis.junit.AxisPackageTests;
061: import org.jfree.chart.block.junit.BlockPackageTests;
062: import org.jfree.chart.entity.junit.EntityPackageTests;
063: import org.jfree.chart.labels.junit.LabelsPackageTests;
064: import org.jfree.chart.needle.junit.NeedlePackageTests;
065: import org.jfree.chart.plot.junit.PlotPackageTests;
066: import org.jfree.chart.renderer.category.junit.RendererCategoryPackageTests;
067: import org.jfree.chart.renderer.junit.RendererPackageTests;
068: import org.jfree.chart.renderer.xy.junit.RendererXYPackageTests;
069: import org.jfree.chart.title.junit.TitlePackageTests;
070: import org.jfree.chart.urls.junit.UrlsPackageTests;
071: import org.jfree.data.category.junit.DataCategoryPackageTests;
072: import org.jfree.data.gantt.junit.DataGanttPackageTests;
073: import org.jfree.data.junit.DataPackageTests;
074: import org.jfree.data.statistics.junit.DataStatisticsPackageTests;
075: import org.jfree.data.time.junit.DataTimePackageTests;
076: import org.jfree.data.time.ohlc.junit.OHLCPackageTests;
077: import org.jfree.data.xy.junit.DataXYPackageTests;
078:
079: /**
080: * A test suite for the JFreeChart class library that can be run using
081: * JUnit (<code>http://www.junit.org<code>).
082: */
083: public class JFreeChartTestSuite extends TestCase {
084:
085: /**
086: * Returns a test suite to the JUnit test runner.
087: *
088: * @return The test suite.
089: */
090: public static Test suite() {
091: TestSuite suite = new TestSuite("JFreeChart");
092: suite.addTest(ChartPackageTests.suite());
093: suite.addTest(AnnotationsPackageTests.suite());
094: suite.addTest(AxisPackageTests.suite());
095: suite.addTest(BlockPackageTests.suite());
096: suite.addTest(EntityPackageTests.suite());
097: suite.addTest(LabelsPackageTests.suite());
098: suite.addTest(NeedlePackageTests.suite());
099: suite.addTest(PlotPackageTests.suite());
100: suite.addTest(RendererPackageTests.suite());
101: suite.addTest(RendererCategoryPackageTests.suite());
102: suite.addTest(RendererXYPackageTests.suite());
103: suite.addTest(TitlePackageTests.suite());
104: suite.addTest(UrlsPackageTests.suite());
105: suite.addTest(DataPackageTests.suite());
106: suite.addTest(DataCategoryPackageTests.suite());
107: suite.addTest(DataStatisticsPackageTests.suite());
108: suite.addTest(DataTimePackageTests.suite());
109: suite.addTest(OHLCPackageTests.suite());
110: suite.addTest(DataXYPackageTests.suite());
111: suite.addTest(DataGanttPackageTests.suite());
112: return suite;
113: }
114:
115: /**
116: * Runs the test suite using JUnit's text-based runner.
117: *
118: * @param args ignored.
119: */
120: public static void main(String[] args) {
121: junit.textui.TestRunner.run(suite());
122: }
123:
124: }
|