001: /*
002: * UtilTestSuite.java: JUnit test for the util package
003: *
004: * Copyright (C) 2001 Heiko Blau
005: *
006: * This file belongs to the Susebox Java core test suite.
007: * The Susebox Java core test suite is free software; you can redistribute it
008: * and/or modify it under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of the License,
010: * or (at your option) 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 Java core 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 Java core test suite uses the test framework JUnit by Kent Beck
028: * and Erich Gamma. You should have received a copy of their JUnit licence
029: * agreement along with the Susebox Java 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.java.util;
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.TestUtilities;
054:
055: //-----------------------------------------------------------------------------
056: // Class UtilTestSuite
057: //
058:
059: /**<p>
060: * This is the test suite for the util package. It composes all test classes
061: * in the util package to a singel test suite.
062: *</p>
063: *
064: * @author Heiko Blau
065: */
066: public class UtilTestSuite extends TestCase {
067:
068: //---------------------------------------------------------------------------
069: // main method
070: //
071:
072: /**
073: * call this method to invoke the tests
074: */
075: public static void main(String[] args) {
076: String[] tests = { UtilTestSuite.class.getName() };
077:
078: TestUtilities.run(tests, args);
079: }
080:
081: //---------------------------------------------------------------------------
082: // suite method
083: //
084:
085: /**
086: * Implementation of the JUnit method <code>suite</code>. For each set of test
087: * properties one or more tests are instantiated.
088: *
089: * @return a test suite
090: */
091: public static Test suite() {
092: TestSuite suite = new TestSuite(UtilTestSuite.class.getName());
093:
094: return suite;
095: }
096:
097: //---------------------------------------------------------------------------
098: // constructor
099: //
100:
101: /**
102: * Constructor
103: */
104: public UtilTestSuite(String name) {
105: super(name);
106: }
107: }
|