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: * DataPackageTests.java
029: * ---------------------
030: * (C) Copyright 2001-2005, by Object Refinery Limited and Contributors.
031: *
032: * Original Author: David Gilbert (for Object Refinery Limited);
033: * Contributor(s): Richard Atkinson;
034: *
035: * $Id: DataPackageTests.java,v 1.1.2.2 2006/10/21 05:13:47 mungady Exp $
036: *
037: * Changes
038: * -------
039: * 16-Nov-2001 : Version 1 (DG);
040: * 30-Sep-2002 : Added tests for the Regression class (DG);
041: * 17-Oct-2002 : Fixed errors reported by Checkstyle (DG);
042: * 05-Mar-2003 : Added tests for the DefaultKeyedValues class (DG);
043: * 13-Mar-2003 : Added tests for the DefaultKeyedValue class (DG);
044: * 12-Aug-2003 : Added tests for TableXYDataset class (RA);
045: * 23-Dec-2003 : Added tests for XYDataItem, XYSeries and
046: * DefaultTableXYDataset (DG);
047: * 23-Mar-2004 : Added tests for DateRange class (DG);
048: * 23-Aug-2004 : Restructured org.jfree.data package (DG);
049: * 18-Jan-2005 : Added main() method (DG);
050: *
051: */
052:
053: package org.jfree.data.junit;
054:
055: import junit.framework.Test;
056: import junit.framework.TestCase;
057: import junit.framework.TestSuite;
058:
059: /**
060: * Some tests for the <code>org.jfree.data</code> package that can be run using
061: * JUnit. You can find more information about JUnit at
062: * <a href="http://www.junit.org">http://www.junit.org</a>.
063: */
064: public class DataPackageTests extends TestCase {
065:
066: /**
067: * Returns a test suite to the JUnit test runner.
068: *
069: * @return The test suite.
070: */
071: public static Test suite() {
072: TestSuite suite = new TestSuite("org.jfree.data");
073: suite.addTestSuite(ComparableObjectItemTests.class);
074: suite.addTestSuite(ComparableObjectSeriesTests.class);
075: suite.addTestSuite(DataUtilitiesTests.class);
076: suite.addTestSuite(DefaultKeyedValueTests.class);
077: suite.addTestSuite(DefaultKeyedValuesTests.class);
078: suite.addTestSuite(DefaultKeyedValues2DTests.class);
079: suite.addTestSuite(DomainOrderTests.class);
080: suite.addTestSuite(KeyedObjectTests.class);
081: suite.addTestSuite(KeyedObjectsTests.class);
082: suite.addTestSuite(KeyedObjects2DTests.class);
083: suite.addTestSuite(KeyToGroupMapTests.class);
084: suite.addTestSuite(RangeTests.class);
085: suite.addTestSuite(RangeTypeTests.class);
086: return suite;
087: }
088:
089: /**
090: * Constructs the test suite.
091: *
092: * @param name the test suite name.
093: */
094: public DataPackageTests(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: }
|