KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > data > xy > junit > DataXYPackageTests


1 /* ===========================================================
2  * JFreeChart : a free chart library for the Java(tm) platform
3  * ===========================================================
4  *
5  * (C) Copyright 2000-2006, 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
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22  * USA.
23  *
24  * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
25  * in the United States and other countries.]
26  *
27  * -----------------------
28  * DataXYPackageTests.java
29  * -----------------------
30  * (C) Copyright 2004-2006, by Object Refinery Limited.
31  *
32  * Original Author: David Gilbert (for Object Refinery Limited);
33  * Contributor(s): -;
34  *
35  * $Id: DataXYPackageTests.java,v 1.1.2.3 2006/11/02 20:55:21 mungady Exp $
36  *
37  * Changes
38  * -------
39  * 23-Aug-2004 : Restructured org.jfree.data package (DG);
40  * 18-Jan-2005 : Added main() method (DG);
41  * 21-Jan-2005 : Added IntervalXYDelegateTests (DG);
42  * 29-Apr-2005 : Added DefaultOHLCDatasetTests and OHLCDataItemTests (DG);
43  * 06-Oct-2005 : Added CategoryTableXYDatasetTests (DG);
44  * 06-Jul-2006 : Added new DefaultXYDatasetTests (DG);
45  * 12-Jul-2006 : Added new DefaultXYZDatasetTests and
46  * DefaultWindDatasetTests (DG);
47  *
48  */

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

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

68     public static Test suite() {
69         TestSuite suite = new TestSuite("org.jfree.data.xy");
70         suite.addTestSuite(CategoryTableXYDatasetTests.class);
71         suite.addTestSuite(DefaultIntervalXYDatasetTests.class);
72         suite.addTestSuite(DefaultOHLCDatasetTests.class);
73         suite.addTestSuite(DefaultTableXYDatasetTests.class);
74         suite.addTestSuite(DefaultWindDatasetTests.class);
75         suite.addTestSuite(DefaultXYDatasetTests.class);
76         suite.addTestSuite(DefaultXYZDatasetTests.class);
77         suite.addTestSuite(IntervalXYDelegateTests.class);
78         suite.addTestSuite(MatrixSeriesTests.class);
79         suite.addTestSuite(OHLCDataItemTests.class);
80         suite.addTestSuite(TableXYDatasetTests.class);
81         suite.addTestSuite(XYDataItemTests.class);
82         suite.addTestSuite(XIntervalDataItemTests.class);
83         suite.addTestSuite(XIntervalSeriesCollectionTests.class);
84         suite.addTestSuite(XIntervalSeriesTests.class);
85         suite.addTestSuite(XYIntervalDataItemTests.class);
86         suite.addTestSuite(XYIntervalSeriesCollectionTests.class);
87         suite.addTestSuite(XYIntervalSeriesTests.class);
88         suite.addTestSuite(XYIntervalTests.class);
89         suite.addTestSuite(XYSeriesCollectionTests.class);
90         suite.addTestSuite(XYSeriesTests.class);
91         suite.addTestSuite(YIntervalDataItemTests.class);
92         suite.addTestSuite(YIntervalSeriesCollectionTests.class);
93         suite.addTestSuite(YIntervalSeriesTests.class);
94         suite.addTestSuite(YIntervalTests.class);
95         suite.addTestSuite(YWithXIntervalTests.class);
96         return suite;
97     }
98
99     /**
100      * Constructs the test suite.
101      *
102      * @param name the test suite name.
103      */

104     public DataXYPackageTests(String JavaDoc 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 JavaDoc[] args) {
114         junit.textui.TestRunner.run(suite());
115     }
116
117 }
118
Popular Tags