001: /*
002: * SuseboxTestSuite.java: JUnit root test for all de.susebox subpackages
003: *
004: * Copyright (C) 2001 Heiko Blau
005: *
006: * This file belongs to the Susebox test suite.
007: * The Susebox test suite is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as published by the
009: * Free Software Foundation; either version 2.1 of the License, or (at your option)
010: * any later version.
011: *
012: * This software is distributed in the hope that it will be useful, but WITHOUT
013: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
014: * FITNESS FOR A PARTICULAR PURPOSE.
015: * See the GNU Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public License along
018: * with the Susebox test suite. If not, write to the
019: *
020: * Free Software Foundation, Inc.
021: * 59 Temple Place, Suite 330,
022: * Boston, MA 02111-1307
023: * USA
024: *
025: * or check the Internet: http://www.fsf.org
026: *
027: * The Susebox test suite uses the test framework JUnit by Kent Beck and Erich Gamma.
028: * You should have received a copy of their JUnit licence agreement along with
029: * the Susebox test suite.
030: *
031: * We do NOT provide the JUnit archive junit.jar nessecary to compile and run
032: * our tests, since we assume, that You either have it already or would like
033: * to get the current release Yourself.
034: * Please visit either:
035: * http://sourceforge.net/projects/junit
036: * or
037: * http://junit.org
038: * to obtain JUnit.
039: *
040: * Contact:
041: * email: heiko@susebox.de
042: */
043:
044: package de.susebox;
045:
046: //-----------------------------------------------------------------------------
047: // Imports
048: //
049: import junit.framework.Test;
050: import junit.framework.TestCase;
051: import junit.framework.TestSuite;
052:
053: import de.susebox.java.JavaTestSuite;
054: import de.susebox.jtopas.JTopasTestSuite;
055:
056: //-----------------------------------------------------------------------------
057: // Class JTopasTestSuite
058: //
059:
060: /**<p>
061: * This is the test suite for the java package tree. It composes all test classes
062: * in the java subpackages to a single test suite.
063: *</p>
064: *
065: * @author Heiko Blau
066: */
067: public class SuseboxTestSuite extends TestCase {
068:
069: //---------------------------------------------------------------------------
070: // main method
071: //
072:
073: /**
074: * call this method to invoke the tests
075: */
076: public static void main(String[] args) {
077: String[] tests = { SuseboxTestSuite.class.getName() };
078:
079: TestUtilities.run(tests, args);
080: }
081:
082: //---------------------------------------------------------------------------
083: // suite method
084: //
085:
086: /**
087: * Implementation of the JUnit method <code>suite</code>. For each set of test
088: * properties one or more tests are instantiated.
089: *
090: * @return a test suite
091: */
092: public static Test suite() {
093: TestSuite suite = new TestSuite(SuseboxTestSuite.class
094: .getName());
095:
096: suite.addTest(TestExceptions.suite());
097: suite.addTest(JTopasTestSuite.suite());
098: suite.addTest(JavaTestSuite.suite());
099: return suite;
100: }
101:
102: //---------------------------------------------------------------------------
103: // constructor
104: //
105:
106: /**
107: * Constructor
108: */
109: public SuseboxTestSuite(String name) {
110: super(name);
111: }
112: }
|