From: markt Date: Sun, 1 Nov 2009 18:16:57 +0000 (+0000) Subject: Add another feature to the Tomcat based unit tests. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4098b9265598695273d3918e6e74559f970ce1a8;p=tomcat7.0 Add another feature to the Tomcat based unit tests. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@831716 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/startup/TomcatBaseTest.java b/test/org/apache/catalina/startup/TomcatBaseTest.java index 2b326467e..4df959c36 100644 --- a/test/org/apache/catalina/startup/TomcatBaseTest.java +++ b/test/org/apache/catalina/startup/TomcatBaseTest.java @@ -58,6 +58,14 @@ public abstract class TomcatBaseTest extends TestCase { return port; } + /** + * Sub-classes may want to add connectors on a new port + */ + public int getNextPort() { + port++; + return getPort(); + } + public void setUp() throws Exception { tempDir = new File("output/tmp"); tempDir.mkdir();