KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > chart > axis > junit > AxisPackageTests


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  * AxisPackageTests.java
28  * ---------------------
29  * (C) Copyright 2003-2005, by Object Refinery Limited.
30  *
31  * Original Author: David Gilbert (for Object Refinery Limited);
32  * Contributor(s): Bill Kelemen;
33  *
34  * $Id: AxisPackageTests.java,v 1.4 2005/05/11 07:07:39 mungady Exp $
35  *
36  * Changes:
37  * --------
38  * 26-Mar-2003 : Version 1 (DG);
39  * 25-May-2003 : Added SegmentedTimelineTests (BK);
40  * 17-Feb-2004 : Added extra tests (DG);
41  * 19-Jan-2005 : Added main() method to run JUnit in text mode (DG);
42  *
43  */

44
45 package org.jfree.chart.axis.junit;
46
47 import junit.framework.Test;
48 import junit.framework.TestCase;
49 import junit.framework.TestSuite;
50
51 /**
52  * A collection of tests for the org.jfree.chart.axis package.
53  * <P>
54  * These tests can be run using JUnit (http://www.junit.org).
55  */

56 public class AxisPackageTests 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.chart.axis");
65         suite.addTestSuite(AxisLocationTests.class);
66         suite.addTestSuite(AxisSpaceTests.class);
67         suite.addTestSuite(AxisTests.class);
68         suite.addTestSuite(CategoryAnchorTests.class);
69         suite.addTestSuite(CategoryAxisTests.class);
70         suite.addTestSuite(CategoryAxis3DTests.class);
71         suite.addTestSuite(CategoryLabelPositionTests.class);
72         suite.addTestSuite(CategoryLabelPositionsTests.class);
73         suite.addTestSuite(CategoryLabelWidthTypeTests.class);
74         suite.addTestSuite(CategoryTickTests.class);
75         suite.addTestSuite(ColorBarTests.class);
76         suite.addTestSuite(CyclicNumberAxisTests.class);
77         suite.addTestSuite(DateAxisTests.class);
78         suite.addTestSuite(DateTickTests.class);
79         suite.addTestSuite(DateTickMarkPositionTests.class);
80         suite.addTestSuite(DateTickUnitTests.class);
81         suite.addTestSuite(LogarithmicAxisTests.class);
82         suite.addTestSuite(MarkerAxisBandTests.class);
83         suite.addTestSuite(MonthDateFormatTests.class);
84         suite.addTestSuite(NumberAxisTests.class);
85         suite.addTestSuite(NumberAxis3DTests.class);
86         suite.addTestSuite(PeriodAxisTests.class);
87         suite.addTestSuite(PeriodAxisLabelInfoTests.class);
88         suite.addTestSuite(QuarterDateFormatTests.class);
89         suite.addTestSuite(SegmentedTimelineTests.class);
90         suite.addTestSuite(SegmentedTimelineTests2.class);
91         suite.addTestSuite(SubCategoryAxisTests.class);
92         suite.addTestSuite(SymbolicAxisTests.class);
93         suite.addTestSuite(ValueAxisTests.class);
94         return suite;
95     }
96
97     /**
98      * Constructs the test suite.
99      *
100      * @param name the suite name.
101      */

102     public AxisPackageTests(String JavaDoc name) {
103         super(name);
104     }
105     
106     /**
107      * Runs the test suite using JUnit's text-based runner.
108      *
109      * @param args ignored.
110      */

111     public static void main(String JavaDoc[] args) {
112         junit.textui.TestRunner.run(suite());
113     }
114
115 }
116
117
Popular Tags