KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > data > junit > DataPackageTests


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  * DataPackageTests.java
28  * ---------------------
29  * (C) Copyright 2001-2005, by Object Refinery Limited and Contributors.
30  *
31  * Original Author: David Gilbert (for Object Refinery Limited);
32  * Contributor(s): Richard Atkinson;
33  *
34  * $Id: DataPackageTests.java,v 1.6 2005/05/19 10:34:40 mungady Exp $
35  *
36  * Changes
37  * -------
38  * 16-Nov-2001 : Version 1 (DG);
39  * 30-Sep-2002 : Added tests for the Regression class (DG);
40  * 17-Oct-2002 : Fixed errors reported by Checkstyle (DG);
41  * 05-Mar-2003 : Added tests for the DefaultKeyedValues class (DG);
42  * 13-Mar-2003 : Added tests for the DefaultKeyedValue class (DG);
43  * 12-Aug-2003 : Added tests for TableXYDataset class (RA);
44  * 23-Dec-2003 : Added tests for XYDataItem, XYSeries and
45  * DefaultTableXYDataset (DG);
46  * 23-Mar-2004 : Added tests for DateRange class (DG);
47  * 23-Aug-2004 : Restructured org.jfree.data package (DG);
48  * 18-Jan-2005 : Added main() method (DG);
49  *
50  */

51
52 package org.jfree.data.junit;
53
54 import junit.framework.Test;
55 import junit.framework.TestCase;
56 import junit.framework.TestSuite;
57
58 /**
59  * Some tests for the <code>org.jfree.data</code> package that can be run using
60  * JUnit. You can find more information about JUnit at
61  * <a HREF="http://www.junit.org">http://www.junit.org</a>.
62  */

63 public class DataPackageTests extends TestCase {
64
65     /**
66      * Returns a test suite to the JUnit test runner.
67      *
68      * @return The test suite.
69      */

70     public static Test suite() {
71         TestSuite suite = new TestSuite("org.jfree.data");
72         suite.addTestSuite(DataUtilitiesTests.class);
73         suite.addTestSuite(DefaultKeyedValueTests.class);
74         suite.addTestSuite(DefaultKeyedValuesTests.class);
75         suite.addTestSuite(DefaultKeyedValues2DTests.class);
76         suite.addTestSuite(DomainOrderTests.class);
77         suite.addTestSuite(KeyedObjectTests.class);
78         suite.addTestSuite(KeyedObjectsTests.class);
79         suite.addTestSuite(KeyedObjects2DTests.class);
80         suite.addTestSuite(RangeTests.class);
81         suite.addTestSuite(RangeTypeTests.class);
82         return suite;
83     }
84
85     /**
86      * Constructs the test suite.
87      *
88      * @param name the test suite name.
89      */

90     public DataPackageTests(String JavaDoc name) {
91         super(name);
92     }
93     
94     /**
95      * Runs the test suite using JUnit's text-based runner.
96      *
97      * @param args ignored.
98      */

99     public static void main(String JavaDoc[] args) {
100         junit.textui.TestRunner.run(suite());
101     }
102
103 }
104
Popular Tags