From: markt Date: Sat, 2 May 2009 23:12:17 +0000 (+0000) Subject: Changes as a result of https://issues.apache.org/bugzilla/show_bug.cgi?id=47124 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fb03b06a2c62a1fd4969018a84e166f332302000;p=tomcat7.0 Changes as a result of https://issues.apache.org/bugzilla/show_bug.cgi?id=47124 Add JUnit to build Provide TestSuite to run all tests git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@770999 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build.properties.default b/build.properties.default index 55daa363e..78c5d340c 100644 --- a/build.properties.default +++ b/build.properties.default @@ -109,3 +109,8 @@ dojo-js.home=${base.path}/dojo-release-1.1.1 dojo-js.loc=http://download.dojotoolkit.org/release-1.1.1/dojo-release-1.1.1.tar.gz dojo-js.jar=${dojo-js.home}/dojo/dojo.js +# ----- JUnit Unit Test Suite, version 3.7 or later ----- +junit.home=${base.path}/junit3.8.2 +junit.lib=${junit.home} +junit.jar=${junit.lib}/junit.jar +junit.loc=${base-sf.loc}/junit/junit3.8.2.zip diff --git a/test/build.xml b/test/build.xml index a27150849..2ebd8b33f 100644 --- a/test/build.xml +++ b/test/build.xml @@ -20,51 +20,79 @@ - + - + - + - + - - - - - - - - - - - - - - - - + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/org/apache/TestAll.java b/test/org/apache/TestAll.java new file mode 100644 index 000000000..9f25fb64a --- /dev/null +++ b/test/org/apache/TestAll.java @@ -0,0 +1,35 @@ +package org.apache; + +import org.apache.catalina.ha.session.TestSerializablePrincipal; +import org.apache.catalina.startup.TomcatStartupAPITest; +import org.apache.catalina.tomcat.util.http.TestCookies; +import org.apache.catalina.tribes.test.TribesTestSuite; +import org.apache.el.lang.TestELSupport; +import org.apache.el.parser.TestELParser; +import org.apache.tomcat.util.res.TestStringManager; + +import junit.framework.Test; +import junit.framework.TestSuite; + +public class TestAll { + + public static Test suite() { + TestSuite suite = new TestSuite("Test for org.apache"); + // o.a.catalina.ha.session + suite.addTestSuite(TestSerializablePrincipal.class); // TODO rename + // o.a.catalina.startup + suite.addTestSuite(TomcatStartupAPITest.class); + // o.a.catalina.tomcat.util.http - TODO fix package + suite.addTestSuite(TestCookies.class); // TODO rename + // Tribes + // suite.addTest(TribesTestSuite.suite()); + // o.a.el + suite.addTestSuite(TestELSupport.class); + suite.addTestSuite(TestELParser.class); + // o.a.tomcat.util + suite.addTestSuite(TestStringManager.class); + + return suite; + } + +}