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: * BlockPackageTests.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: BlockPackageTests.java,v 1.1.2.2 2007/03/16 15:26:16 mungady Exp $
036: *
037: * Changes:
038: * --------
039: * 22-Oct-2004 : Version 1 (DG);
040: * 18-Jan-2005 : Added main() method (DG);
041: * 04-Feb-2005 : Added new tests (DG);
042: * 01-Sep-2005 : New tests for LabelBlock (DG);
043: * 16-Mar-2007 : Added AbstractBlockTests, ColorBlockTests and
044: * LineBorderTests (DG);
045: *
046: */
047:
048: package org.jfree.chart.block.junit;
049:
050: import junit.framework.Test;
051: import junit.framework.TestCase;
052: import junit.framework.TestSuite;
053:
054: /**
055: * A collection of tests for the org.jfree.chart.block package.
056: * <P>
057: * These tests can be run using JUnit (http://www.junit.org).
058: */
059: public class BlockPackageTests extends TestCase {
060:
061: /**
062: * Returns a test suite to the JUnit test runner.
063: *
064: * @return The test suite.
065: */
066: public static Test suite() {
067: TestSuite suite = new TestSuite("org.jfree.chart.block");
068: suite.addTestSuite(AbstractBlockTests.class);
069: suite.addTestSuite(BlockBorderTests.class);
070: suite.addTestSuite(BlockContainerTests.class);
071: suite.addTestSuite(BorderArrangementTests.class);
072: suite.addTestSuite(ColorBlockTests.class);
073: suite.addTestSuite(ColumnArrangementTests.class);
074: suite.addTestSuite(EmptyBlockTests.class);
075: suite.addTestSuite(FlowArrangementTests.class);
076: suite.addTestSuite(GridArrangementTests.class);
077: suite.addTestSuite(LabelBlockTests.class);
078: suite.addTestSuite(LineBorderTests.class);
079: suite.addTestSuite(RectangleConstraintTests.class);
080: return suite;
081: }
082:
083: /**
084: * Constructs the test suite.
085: *
086: * @param name the suite name.
087: */
088: public BlockPackageTests(String name) {
089: super (name);
090: }
091:
092: /**
093: * Runs the test suite using JUnit's text-based runner.
094: *
095: * @param args ignored.
096: */
097: public static void main(String[] args) {
098: junit.textui.TestRunner.run(suite());
099: }
100:
101: }
|