camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject svn commit: r1398519 - /camel/branches/camel-2.9.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyEndpointSetHttpTraceTest.java
Date Mon, 15 Oct 2012 21:08:33 GMT
Author: cmueller
Date: Mon Oct 15 21:08:33 2012
New Revision: 1398519

URL: http://svn.apache.org/viewvc?rev=1398519&view=rev
Log:
unit tests should use AvailablePortFinder instead of fixed port numbers

Modified:
    camel/branches/camel-2.9.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyEndpointSetHttpTraceTest.java

Modified: camel/branches/camel-2.9.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyEndpointSetHttpTraceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyEndpointSetHttpTraceTest.java?rev=1398519&r1=1398518&r2=1398519&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyEndpointSetHttpTraceTest.java
(original)
+++ camel/branches/camel-2.9.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyEndpointSetHttpTraceTest.java
Mon Oct 15 21:08:33 2012
@@ -21,13 +21,10 @@ import org.apache.commons.httpclient.Htt
 import org.apache.commons.httpclient.methods.TraceMethod;
 import org.junit.Test;
 
-/**
- * @version 
- */
 public class JettyEndpointSetHttpTraceTest extends BaseJettyTest {
 
-    private int portTraceOn = 8080;
-    private int portTraceOff = 8081;
+    private int portTraceOn = getNextPort();
+    private int portTraceOff = getNextPort();
 
     public JettyEndpointSetHttpTraceTest() {
         portTraceOn = getNextPort();



Mime
View raw message