Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 03716200D0B for ; Tue, 12 Sep 2017 21:37:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 01E681609B4; Tue, 12 Sep 2017 19:37:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5044F1609C7 for ; Tue, 12 Sep 2017 21:37:03 +0200 (CEST) Received: (qmail 2521 invoked by uid 500); 12 Sep 2017 19:37:02 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 2501 invoked by uid 99); 12 Sep 2017 19:37:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2017 19:37:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0AC1FF5726; Tue, 12 Sep 2017 19:37:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: onders@apache.org To: commits@camel.apache.org Date: Tue, 12 Sep 2017 19:37:01 -0000 Message-Id: <57c9bd4215024f4e8ddae0689032daf7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] camel git commit: CAMEL-11602 - fix test which may low-potentially fail archived-at: Tue, 12 Sep 2017 19:37:04 -0000 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 Authored: Tue Sep 12 17:54:44 2017 +0300 Committer: onders86 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 = "" + "" + "";