001: /* ===========================================================
002: * JFreeChart : a free chart library for the Java(tm) platform
003: * ===========================================================
004: *
005: * (C) Copyright 2000-2007, 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: * DataXYPackageTests.java
029: * -----------------------
030: * (C) Copyright 2004-2007, by Object Refinery Limited.
031: *
032: * Original Author: David Gilbert (for Object Refinery Limited);
033: * Contributor(s): -;
034: *
035: * $Id: DataXYPackageTests.java,v 1.1.2.8 2007/06/13 10:28:05 mungady Exp $
036: *
037: * Changes
038: * -------
039: * 23-Aug-2004 : Restructured org.jfree.data package (DG);
040: * 18-Jan-2005 : Added main() method (DG);
041: * 21-Jan-2005 : Added IntervalXYDelegateTests (DG);
042: * 29-Apr-2005 : Added DefaultOHLCDatasetTests and OHLCDataItemTests (DG);
043: * 06-Oct-2005 : Added CategoryTableXYDatasetTests (DG);
044: * 06-Jul-2006 : Added new DefaultXYDatasetTests (DG);
045: * 12-Jul-2006 : Added new DefaultXYZDatasetTests and
046: * DefaultWindDatasetTests (DG);
047: * 27-Nov-2006 : Added MatrixSeriesCollectionTests (DG);
048: * 25-Jan-2007 : Added XYBarDatasetTests (DG);
049: * 25-May-2007 : Added VectorXXX tests (DG);
050: *
051: */
052:
053: package org.jfree.data.xy.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.category</code> package that can
061: * be run using 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 DataXYPackageTests 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.xy");
073: suite.addTestSuite(CategoryTableXYDatasetTests.class);
074: suite.addTestSuite(DefaultHighLowDatasetTests.class);
075: suite.addTestSuite(DefaultIntervalXYDatasetTests.class);
076: suite.addTestSuite(DefaultOHLCDatasetTests.class);
077: suite.addTestSuite(DefaultTableXYDatasetTests.class);
078: suite.addTestSuite(DefaultWindDatasetTests.class);
079: suite.addTestSuite(DefaultXYDatasetTests.class);
080: suite.addTestSuite(DefaultXYZDatasetTests.class);
081: suite.addTestSuite(IntervalXYDelegateTests.class);
082: suite.addTestSuite(MatrixSeriesCollectionTests.class);
083: suite.addTestSuite(MatrixSeriesTests.class);
084: suite.addTestSuite(OHLCDataItemTests.class);
085: suite.addTestSuite(TableXYDatasetTests.class);
086: suite.addTestSuite(VectorDataItemTests.class);
087: suite.addTestSuite(VectorSeriesCollectionTests.class);
088: suite.addTestSuite(VectorSeriesTests.class);
089: suite.addTestSuite(VectorTests.class);
090: suite.addTestSuite(XIntervalDataItemTests.class);
091: suite.addTestSuite(XIntervalSeriesCollectionTests.class);
092: suite.addTestSuite(XIntervalSeriesTests.class);
093: suite.addTestSuite(XYBarDatasetTests.class);
094: suite.addTestSuite(XYCoordinateTests.class);
095: suite.addTestSuite(XYDataItemTests.class);
096: suite.addTestSuite(XYIntervalDataItemTests.class);
097: suite.addTestSuite(XYIntervalSeriesCollectionTests.class);
098: suite.addTestSuite(XYIntervalSeriesTests.class);
099: suite.addTestSuite(XYIntervalTests.class);
100: suite.addTestSuite(XYSeriesCollectionTests.class);
101: suite.addTestSuite(XYSeriesTests.class);
102: suite.addTestSuite(YIntervalDataItemTests.class);
103: suite.addTestSuite(YIntervalSeriesCollectionTests.class);
104: suite.addTestSuite(YIntervalSeriesTests.class);
105: suite.addTestSuite(YIntervalTests.class);
106: suite.addTestSuite(YWithXIntervalTests.class);
107: return suite;
108: }
109:
110: /**
111: * Constructs the test suite.
112: *
113: * @param name the test suite name.
114: */
115: public DataXYPackageTests(String name) {
116: super (name);
117: }
118:
119: /**
120: * Runs the test suite using JUnit's text-based runner.
121: *
122: * @param args ignored.
123: */
124: public static void main(String[] args) {
125: junit.textui.TestRunner.run(suite());
126: }
127:
128: }
|