cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1338375 - /cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/AbstractTestServerBase.java
Date Mon, 14 May 2012 20:09:48 GMT
Author: dkulp
Date: Mon May 14 20:09:48 2012
New Revision: 1338375

URL: http://svn.apache.org/viewvc?rev=1338375&view=rev
Log:
Add ability to register a port as an int

Modified:
    cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/AbstractTestServerBase.java

Modified: cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/AbstractTestServerBase.java
URL: http://svn.apache.org/viewvc/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/AbstractTestServerBase.java?rev=1338375&r1=1338374&r2=1338375&view=diff
==============================================================================
--- cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/AbstractTestServerBase.java
(original)
+++ cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/AbstractTestServerBase.java
Mon May 14 20:09:48 2012
@@ -118,6 +118,9 @@ public abstract class AbstractTestServer
         return true;
     }
     
+    protected static int allocatePortAsInt(Class<?> cls) {
+        return Integer.parseInt(TestUtil.getPortNumber(cls));
+    }
     protected static String allocatePort(Class<?> cls) {
         return TestUtil.getPortNumber(cls);
     }



Mime
View raw message