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: * AxisPackageTests.java
029: * ---------------------
030: * (C) Copyright 2003-2007, by Object Refinery Limited.
031: *
032: * Original Author: David Gilbert (for Object Refinery Limited);
033: * Contributor(s): Bill Kelemen;
034: *
035: * $Id: AxisPackageTests.java,v 1.1.2.2 2007/03/21 11:17:59 mungady Exp $
036: *
037: * Changes:
038: * --------
039: * 26-Mar-2003 : Version 1 (DG);
040: * 25-May-2003 : Added SegmentedTimelineTests (BK);
041: * 17-Feb-2004 : Added extra tests (DG);
042: * 19-Jan-2005 : Added main() method to run JUnit in text mode (DG);
043: * 21-Mar-2007 : Added ExtendedCategoryAxisTests (DG);
044: *
045: */
046:
047: package org.jfree.chart.axis.junit;
048:
049: import junit.framework.Test;
050: import junit.framework.TestCase;
051: import junit.framework.TestSuite;
052:
053: /**
054: * A collection of tests for the org.jfree.chart.axis package.
055: * <P>
056: * These tests can be run using JUnit (http://www.junit.org).
057: */
058: public class AxisPackageTests extends TestCase {
059:
060: /**
061: * Returns a test suite to the JUnit test runner.
062: *
063: * @return The test suite.
064: */
065: public static Test suite() {
066: TestSuite suite = new TestSuite("org.jfree.chart.axis");
067: suite.addTestSuite(AxisLocationTests.class);
068: suite.addTestSuite(AxisSpaceTests.class);
069: suite.addTestSuite(AxisTests.class);
070: suite.addTestSuite(CategoryAnchorTests.class);
071: suite.addTestSuite(CategoryAxisTests.class);
072: suite.addTestSuite(CategoryAxis3DTests.class);
073: suite.addTestSuite(CategoryLabelPositionTests.class);
074: suite.addTestSuite(CategoryLabelPositionsTests.class);
075: suite.addTestSuite(CategoryLabelWidthTypeTests.class);
076: suite.addTestSuite(CategoryTickTests.class);
077: suite.addTestSuite(ColorBarTests.class);
078: suite.addTestSuite(CyclicNumberAxisTests.class);
079: suite.addTestSuite(DateAxisTests.class);
080: suite.addTestSuite(DateTickTests.class);
081: suite.addTestSuite(DateTickMarkPositionTests.class);
082: suite.addTestSuite(DateTickUnitTests.class);
083: suite.addTestSuite(ExtendedCategoryAxisTests.class);
084: suite.addTestSuite(LogarithmicAxisTests.class);
085: suite.addTestSuite(MarkerAxisBandTests.class);
086: suite.addTestSuite(MonthDateFormatTests.class);
087: suite.addTestSuite(NumberAxisTests.class);
088: suite.addTestSuite(NumberAxis3DTests.class);
089: suite.addTestSuite(NumberTickUnitTests.class);
090: suite.addTestSuite(PeriodAxisTests.class);
091: suite.addTestSuite(PeriodAxisLabelInfoTests.class);
092: suite.addTestSuite(QuarterDateFormatTests.class);
093: suite.addTestSuite(SegmentedTimelineTests.class);
094: suite.addTestSuite(SegmentedTimelineTests2.class);
095: suite.addTestSuite(SubCategoryAxisTests.class);
096: suite.addTestSuite(SymbolAxisTests.class);
097: suite.addTestSuite(ValueAxisTests.class);
098: return suite;
099: }
100:
101: /**
102: * Constructs the test suite.
103: *
104: * @param name the suite name.
105: */
106: public AxisPackageTests(String name) {
107: super (name);
108: }
109:
110: /**
111: * Runs the test suite using JUnit's text-based runner.
112: *
113: * @param args ignored.
114: */
115: public static void main(String[] args) {
116: junit.textui.TestRunner.run(suite());
117: }
118:
119: }
|