Author: ningjiang Date: Thu Mar 21 04:14:24 2013 New Revision: 1459150 URL: http://svn.apache.org/r1459150 Log: CAMEL-6161 blueprint-cxf-test - Should use dynamic port number with thanks to Aki
Modified: camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfEndpointBeansTest.java Modified: camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfEndpointBeansTest.java URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfEndpointBeansTest.java?rev=1459150&r1=1459149&r2=1459150&view=diff ============================================================================== --- camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfEndpointBeansTest.java (original) +++ camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfEndpointBeansTest.java Thu Mar 21 04:14:24 2013 @@ -50,6 +50,8 @@ public class CxfEndpointBeansTest extend protected Properties useOverridePropertiesWithPropertiesComponent() { Properties extra = new Properties(); extra.put("router.address", "http://localhost:" + CXFTestSupport.getPort1() + "/CxfEndpointBeansRouterTest/router"); + extra.put("service.address", "http://localhost:" + CXFTestSupport.getPort2() + "/CxfEndpointBeansRouterTest/service"); + extra.put("test.address", "http://localhost:" + CXFTestSupport.getPort3() + "/testEndpoint"); return extra; } @@ -104,7 +106,8 @@ public class CxfEndpointBeansTest extend QName endpointName = QName.valueOf("{http://org.apache.camel.component.cxf}myEndpoint"); QName serviceName = QName.valueOf("{http://org.apache.camel.component.cxf}myService"); - assertEquals("Got a wrong address", "http://localhost:9000/testEndpoint", testEndpoint.getAddress()); + assertEquals("Got a wrong address", + "http://localhost:" + CXFTestSupport.getPort3() + "/testEndpoint", testEndpoint.getAddress()); assertEquals("Got a wrong bindingId", "http://schemas.xmlsoap.org/wsdl/soap12/", testEndpoint.getBindingId()); assertEquals("Got a wrong transportId", "http://cxf.apache.org/transports/http", testEndpoint.getTransportId()); assertEquals("Got a wrong endpointName", endpointName, testEndpoint.getPortName());