cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1241638 - in /cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers: HandlerInvocationUsingAddNumbersTest.java HandlerServer.java
Date Tue, 07 Feb 2012 21:31:57 GMT
Author: dkulp
Date: Tue Feb  7 21:31:56 2012
New Revision: 1241638

URL: http://svn.apache.org/viewvc?rev=1241638&view=rev
Log:
Fix an issue where a test wasn't actually using a dynamic port like it
should.

Modified:
    cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java
    cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerServer.java

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java?rev=1241638&r1=1241637&r2=1241638&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java
(original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java
Tue Feb  7 21:31:56 2012
@@ -39,7 +39,6 @@ import org.apache.cxf.Bus;
 import org.apache.cxf.BusFactory;
 import org.apache.cxf.resource.ResourceManager;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
-import org.apache.cxf.testutil.common.TestUtil;
 import org.apache.handlers.AddNumbers;
 import org.apache.handlers.AddNumbersService;
 import org.apache.handlers.types.AddNumbersResponse;
@@ -54,7 +53,7 @@ public class HandlerInvocationUsingAddNu
     static QName portName = new QName("http://apache.org/handlers", "AddNumbersPort");
 
     static String addNumbersAddress
-        = "http://localhost:" + TestUtil.getPortNumber(HandlerServer.class, 1)
+        = "http://localhost:" + HandlerServer.PORT1
             + "/handlers/AddNumbersService/AddNumbersPort";
 
     @BeforeClass

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerServer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerServer.java?rev=1241638&r1=1241637&r2=1241638&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerServer.java
(original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerServer.java
Tue Feb  7 21:31:56 2012
@@ -24,10 +24,13 @@ import org.apache.cxf.testutil.common.Ab
 import org.apache.cxf.testutil.common.TestUtil;
 
 public class HandlerServer extends AbstractBusTestServerBase {
-
+    public static final String PORT1 = TestUtil.getPortNumber(HandlerServer.class, 1);
+    public static final String PORT2 = TestUtil.getPortNumber(HandlerServer.class, 2);
+    
+    
     protected void run() {
-        String addNumbersPort = TestUtil.getPortNumber(HandlerServer.class, 1);
-        String greeterPort = TestUtil.getPortNumber(HandlerServer.class, 2);
+        String addNumbersPort = PORT1;
+        String greeterPort = PORT2;
         
         Object implementor = new AddNumbersImpl();
         String address = "http://localhost:"



Mime
View raw message