Repository: camel Updated Branches: refs/heads/master b46d5cbbc -> e866ec5f9
CAMEL-11602 - fix test which may low-potentially fail Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e91eb42b Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e91eb42b Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e91eb42b Branch: refs/heads/master Commit: e91eb42b0c4c6baf0271cd8e53085260eb0fb4e1 Parents: 98e38a9 Author: onders86 <[email protected]> Authored: Tue Sep 12 17:54:44 2017 +0300 Committer: onders86 <[email protected]> Committed: Tue Sep 12 17:54:44 2017 +0300 ---------------------------------------------------------------------- .../apache/camel/component/cxf/CxfProducerSoapActionTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/e91eb42b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerSoapActionTest.java ---------------------------------------------------------------------- diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerSoapActionTest.java b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerSoapActionTest.java index d6019f4..bcb589e 100644 --- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerSoapActionTest.java +++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerSoapActionTest.java @@ -23,17 +23,19 @@ import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.cxf.common.message.CxfConstants; +import org.apache.camel.test.AvailablePortFinder; import org.apache.camel.test.junit4.CamelTestSupport; import org.apache.cxf.binding.soap.SoapBindingConstants; import org.junit.Test; public class CxfProducerSoapActionTest extends CamelTestSupport { + private static int port = AvailablePortFinder.getNextAvailable(); private static final String SOAP_ACTION = "http://camel.apache.org/order/Order"; private static final String OPERATION_NAMESPACE = "http://camel.apache.org/order"; private static final String OPERATION_NAME = "order"; private static final String DIRECT_START = "direct:start"; - private static final String CXF_ENDPOINT = "cxf:http://localhost:9000/order?wsdlURL=classpath:order.wsdl&loggingFeatureEnabled=true"; + private static final String CXF_ENDPOINT = "cxf:http://localhost:" + port + "/order?wsdlURL=classpath:order.wsdl&loggingFeatureEnabled=true"; private static final String REQUEST_MESSAGE = "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\">" + "<Body/>" + "</Envelope>";
