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: * LabelsPackageTests.java
029: * -----------------------
030: * (C) Copyright 2003-2007, by Object Refinery Limited.
031: *
032: * Original Author: David Gilbert (for Object Refinery Limited);
033: * Contributor(s): -;
034: *
035: * $Id: LabelsPackageTests.java,v 1.1.2.3 2007/02/20 15:32:06 mungady Exp $
036: *
037: * Changes:
038: * --------
039: * 21-Mar-2003 : Version 1 (DG);
040: * 13-Aug-2003 : Renamed class, added tests (DG);
041: * 19-Jan-2005 : Added main() method to run JUnit in text mode (DG);
042: * 20-Feb-2007 : Added MultipleXYSeriesLabelGeneratorTests (DG);
043: *
044: */
045:
046: package org.jfree.chart.labels.junit;
047:
048: import junit.framework.Test;
049: import junit.framework.TestCase;
050: import junit.framework.TestSuite;
051:
052: /**
053: * A collection of tests for the <code>org.jfree.chart.labels</code> package.
054: * <P>
055: * These tests can be run using JUnit (http://www.junit.org).
056: */
057: public class LabelsPackageTests extends TestCase {
058:
059: /**
060: * Returns a test suite to the JUnit test runner.
061: *
062: * @return The test suite.
063: */
064: public static Test suite() {
065: TestSuite suite = new TestSuite("org.jfree.chart.labels");
066: suite.addTestSuite(BoxAndWhiskerToolTipGeneratorTests.class);
067: suite.addTestSuite(BoxAndWhiskerXYToolTipGeneratorTests.class);
068: suite.addTestSuite(BubbleXYItemLabelGeneratorTests.class);
069: suite.addTestSuite(CustomXYItemLabelGeneratorTests.class);
070: suite.addTestSuite(HighLowItemLabelGeneratorTests.class);
071: suite.addTestSuite(IntervalCategoryLabelGeneratorTests.class);
072: suite.addTestSuite(ItemLabelAnchorTests.class);
073: suite.addTestSuite(ItemLabelPositionTests.class);
074: suite.addTestSuite(MultipleXYSeriesLabelGeneratorTests.class);
075: suite
076: .addTestSuite(StandardCategoryItemLabelGeneratorTests.class);
077: suite
078: .addTestSuite(StandardCategorySeriesLabelGeneratorTests.class);
079: suite.addTestSuite(StandardCategoryToolTipGeneratorTests.class);
080: suite.addTestSuite(StandardContourToolTipGeneratorTests.class);
081: suite.addTestSuite(StandardPieSectionLabelGeneratorTests.class);
082: suite.addTestSuite(StandardPieToolTipGeneratorTests.class);
083: suite.addTestSuite(StandardXYItemLabelGeneratorTests.class);
084: suite.addTestSuite(StandardXYSeriesLabelGeneratorTests.class);
085: suite.addTestSuite(StandardXYToolTipGeneratorTests.class);
086: suite.addTestSuite(StandardXYZToolTipGeneratorTests.class);
087: suite.addTestSuite(SymbolicXYItemLabelGeneratorTests.class);
088: return suite;
089: }
090:
091: /**
092: * Constructs the test suite.
093: *
094: * @param name the suite name.
095: */
096: public LabelsPackageTests(String name) {
097: super (name);
098: }
099:
100: /**
101: * Runs the test suite using JUnit's text-based runner.
102: *
103: * @param args ignored.
104: */
105: public static void main(String[] args) {
106: junit.textui.TestRunner.run(suite());
107: }
108:
109: }
|