Add another feature to the Tomcat based unit tests.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 1 Nov 2009 18:16:57 +0000 (18:16 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 1 Nov 2009 18:16:57 +0000 (18:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@831716 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/startup/TomcatBaseTest.java

index 2b32646..4df959c 100644 (file)
@@ -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();