001: /* ===========================================================
002: * JFreeChart : a free chart library for the Java(tm) platform
003: * ===========================================================
004: *
005: * (C) Copyright 2000-2005, 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: * DataTimePackageTests.java
029: * -------------------------
030: * (C) Copyright 2003-2005, by Object Refinery Limited.
031: *
032: * Original Author: David Gilbert (for Object Refinery Limited);
033: * Contributor(s): -;
034: *
035: * $Id: DataTimePackageTests.java,v 1.1.2.1 2006/10/03 15:41:39 mungady Exp $
036: *
037: * Changes
038: * -------
039: * 13-Mar-2001 : Version 1 (DG);
040: * 23-Aug-2004 : Restructured org.jfree.data package (DG);
041: * 18-Jan-2005 : Added main() method (DG);
042: *
043: */
044:
045: package org.jfree.data.time.junit;
046:
047: import junit.framework.Test;
048: import junit.framework.TestCase;
049: import junit.framework.TestSuite;
050:
051: /**
052: * Some tests for the <code>org.jfree.data.time</code> package that can be run
053: * using JUnit. You can find more information about JUnit at
054: * http://www.junit.org.
055: */
056: public class DataTimePackageTests extends TestCase {
057:
058: /**
059: * Returns a test suite to the JUnit test runner.
060: *
061: * @return The test suite.
062: */
063: public static Test suite() {
064: TestSuite suite = new TestSuite("org.jfree.data.time");
065: suite.addTestSuite(DateRangeTests.class);
066: suite.addTestSuite(DayTests.class);
067: suite.addTestSuite(FixedMillisecondTests.class);
068: suite.addTestSuite(HourTests.class);
069: suite.addTestSuite(MinuteTests.class);
070: suite.addTestSuite(MillisecondTests.class);
071: suite.addTestSuite(MonthTests.class);
072: suite.addTestSuite(MovingAverageTests.class);
073: suite.addTestSuite(QuarterTests.class);
074: suite.addTestSuite(SecondTests.class);
075: suite.addTestSuite(SimpleTimePeriodTests.class);
076: suite.addTestSuite(TimePeriodAnchorTests.class);
077: suite.addTestSuite(TimePeriodValueTests.class);
078: suite.addTestSuite(TimePeriodValuesTests.class);
079: suite.addTestSuite(TimePeriodValuesCollectionTests.class);
080: suite.addTestSuite(TimeSeriesCollectionTests.class);
081: suite.addTestSuite(TimeSeriesTests.class);
082: suite.addTestSuite(TimeSeriesDataItemTests.class);
083: suite.addTestSuite(TimeTableXYDatasetTests.class);
084: suite.addTestSuite(WeekTests.class);
085: suite.addTestSuite(YearTests.class);
086: return suite;
087: }
088:
089: /**
090: * Constructs the test suite.
091: *
092: * @param name the test suite name.
093: */
094: public DataTimePackageTests(String name) {
095: super (name);
096: }
097:
098: /**
099: * Runs the test suite using JUnit's text-based runner.
100: *
101: * @param args ignored.
102: */
103: public static void main(String[] args) {
104: junit.textui.TestRunner.run(suite());
105: }
106:
107: }
|