tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r831716 - /tomcat/trunk/test/org/apache/catalina/startup/TomcatBaseTest.java
Date Sun, 01 Nov 2009 18:16:58 GMT
Author: markt
Date: Sun Nov  1 18:16:57 2009
New Revision: 831716

URL: http://svn.apache.org/viewvc?rev=831716&view=rev
Log:
Add another feature to the Tomcat based unit tests.

Modified:
    tomcat/trunk/test/org/apache/catalina/startup/TomcatBaseTest.java

Modified: tomcat/trunk/test/org/apache/catalina/startup/TomcatBaseTest.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/startup/TomcatBaseTest.java?rev=831716&r1=831715&r2=831716&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/startup/TomcatBaseTest.java (original)
+++ tomcat/trunk/test/org/apache/catalina/startup/TomcatBaseTest.java Sun Nov  1 18:16:57
2009
@@ -58,6 +58,14 @@
         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();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message