KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > chart > junit > JFreeChartTestSuite


1 /* ===========================================================
2  * JFreeChart : a free chart library for the Java(tm) platform
3  * ===========================================================
4  *
5  * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
6  *
7  * Project Info: http://www.jfree.org/jfreechart/index.html
8  *
9  * This library is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17  * License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this library; if not, write to the Free Software Foundation,
21  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22  *
23  * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
24  * in the United States and other countries.]
25  *
26  * ------------------------
27  * JFreeChartTestSuite.java
28  * ------------------------
29  * (C) Copyright 2002-2005, by Object Refinery Limited.
30  *
31  * Original Author: David Gilbert (for Object Refinery Limited);
32  * Contributor(s): -;
33  *
34  * $Id: JFreeChartTestSuite.java,v 1.4 2005/03/08 10:45:44 mungady Exp $
35  *
36  * Changes:
37  * --------
38  * 11-Jun-2002 : Version 1 (DG);
39  * 30-Sep-2002 : Added tests for com.jrefinery.data (DG);
40  * 17-Oct-2002 : Fixed errors reported by Checkstyle (DG);
41  * 13-Mar-2003 : Added tests for new com.jrefinery.data.time package (DG);
42  * 17-Feb-2004 : Added tests for org.jfree.chart.title package (DG);
43  * 20-May-2004 : Added tests for org.jfree.chart.entity package (DG);
44  * 30-Jul-2004 : Added tests for org.jfree.data.gantt package (DG);
45  * 23-Aug-2004 : Restructured org.jfree.data (DG);
46  * 18-Jan-2005 : Added main() method (DG);
47  *
48  */

49
50 package org.jfree.chart.junit;
51
52 import junit.framework.Test;
53 import junit.framework.TestCase;
54 import junit.framework.TestSuite;
55
56 import org.jfree.chart.annotations.junit.AnnotationsPackageTests;
57 import org.jfree.chart.axis.junit.AxisPackageTests;
58 import org.jfree.chart.block.junit.BlockPackageTests;
59 import org.jfree.chart.entity.junit.EntityPackageTests;
60 import org.jfree.chart.labels.junit.LabelsPackageTests;
61 import org.jfree.chart.plot.junit.PlotPackageTests;
62 import org.jfree.chart.renderer.category.junit.RendererCategoryPackageTests;
63 import org.jfree.chart.renderer.junit.RendererPackageTests;
64 import org.jfree.chart.renderer.xy.junit.RendererXYPackageTests;
65 import org.jfree.chart.title.junit.TitlePackageTests;
66 import org.jfree.chart.ui.junit.ChartUIPackageTests;
67 import org.jfree.chart.urls.junit.UrlsPackageTests;
68 import org.jfree.data.category.junit.DataCategoryPackageTests;
69 import org.jfree.data.gantt.junit.DataGanttPackageTests;
70 import org.jfree.data.junit.DataPackageTests;
71 import org.jfree.data.statistics.junit.DataStatisticsPackageTests;
72 import org.jfree.data.time.junit.DataTimePackageTests;
73 import org.jfree.data.xy.junit.DataXYPackageTests;
74
75 /**
76  * A test suite for the JFreeChart class library that can be run using
77  * JUnit (<code>http://www.junit.org<code>).
78  */

79 public class JFreeChartTestSuite extends TestCase {
80
81     /**
82      * Returns a test suite to the JUnit test runner.
83      *
84      * @return The test suite.
85      */

86     public static Test suite() {
87         TestSuite suite = new TestSuite("JFreeChart");
88         suite.addTest(ChartPackageTests.suite());
89         suite.addTest(AnnotationsPackageTests.suite());
90         suite.addTest(AxisPackageTests.suite());
91         suite.addTest(BlockPackageTests.suite());
92         suite.addTest(EntityPackageTests.suite());
93         suite.addTest(LabelsPackageTests.suite());
94         suite.addTest(PlotPackageTests.suite());
95         suite.addTest(RendererPackageTests.suite());
96         suite.addTest(RendererCategoryPackageTests.suite());
97         suite.addTest(RendererXYPackageTests.suite());
98         suite.addTest(TitlePackageTests.suite());
99         suite.addTest(ChartUIPackageTests.suite());
100         suite.addTest(UrlsPackageTests.suite());
101         suite.addTest(DataPackageTests.suite());
102         suite.addTest(DataCategoryPackageTests.suite());
103         suite.addTest(DataStatisticsPackageTests.suite());
104         suite.addTest(DataTimePackageTests.suite());
105         suite.addTest(DataXYPackageTests.suite());
106         suite.addTest(DataGanttPackageTests.suite());
107         return suite;
108     }
109     
110     /**
111      * Runs the test suite using JUnit's text-based runner.
112      *
113      * @param args ignored.
114      */

115     public static void main(String JavaDoc[] args) {
116         junit.textui.TestRunner.run(suite());
117     }
118
119 }
120
Popular Tags