KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > data > time > junit > DataTimePackageTests


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  * DataTimePackageTests.java
28  * -------------------------
29  * (C) Copyright 2003-2005, by Object Refinery Limited.
30  *
31  * Original Author: David Gilbert (for Object Refinery Limited);
32  * Contributor(s): -;
33  *
34  * $Id: DataTimePackageTests.java,v 1.6 2005/03/11 15:21:34 mungady Exp $
35  *
36  * Changes
37  * -------
38  * 13-Mar-2001 : Version 1 (DG);
39  * 23-Aug-2004 : Restructured org.jfree.data package (DG);
40  * 18-Jan-2005 : Added main() method (DG);
41  *
42  */

43
44 package org.jfree.data.time.junit;
45
46
47 import junit.framework.Test;
48 import junit.framework.TestCase;
49 import junit.framework.TestSuite;
50
51 /**
52  * Some tests for the <code>org.jfree.data.time</code> package that can be run
53  * using JUnit. You can find more information about JUnit at
54  * http://www.junit.org.
55  */

56 public class DataTimePackageTests extends TestCase {
57
58     /**
59      * Returns a test suite to the JUnit test runner.
60      *
61      * @return The test suite.
62      */

63     public static Test suite() {
64         TestSuite suite = new TestSuite("org.jfree.data.time");
65         suite.addTestSuite(DateRangeTests.class);
66         suite.addTestSuite(DayTests.class);
67         suite.addTestSuite(FixedMillisecondTests.class);
68         suite.addTestSuite(HourTests.class);
69         suite.addTestSuite(MinuteTests.class);
70         suite.addTestSuite(MillisecondTests.class);
71         suite.addTestSuite(MonthTests.class);
72         suite.addTestSuite(MovingAverageTests.class);
73         suite.addTestSuite(QuarterTests.class);
74         suite.addTestSuite(SecondTests.class);
75         suite.addTestSuite(SimpleTimePeriodTests.class);
76         suite.addTestSuite(TimePeriodAnchorTests.class);
77         suite.addTestSuite(TimePeriodValueTests.class);
78         suite.addTestSuite(TimePeriodValuesTests.class);
79         suite.addTestSuite(TimePeriodValuesCollectionTests.class);
80         suite.addTestSuite(TimeSeriesCollectionTests.class);
81         suite.addTestSuite(TimeSeriesTests.class);
82         suite.addTestSuite(TimeSeriesDataItemTests.class);
83         suite.addTestSuite(TimeTableXYDatasetTests.class);
84         suite.addTestSuite(WeekTests.class);
85         suite.addTestSuite(YearTests.class);
86         return suite;
87     }
88
89     /**
90      * Constructs the test suite.
91      *
92      * @param name the test suite name.
93      */

94     public DataTimePackageTests(String JavaDoc name) {
95         super(name);
96     }
97     
98     /**
99      * Runs the test suite using JUnit's text-based runner.
100      *
101      * @param args ignored.
102      */

103     public static void main(String JavaDoc[] args) {
104         junit.textui.TestRunner.run(suite());
105     }
106
107 }
108
Popular Tags