camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject git commit: CAMEL-7223: Avoid using hard-coded ports for the unit-tests
Date Tue, 18 Feb 2014 22:08:26 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.11.x d302bbe60 -> fda86665a


CAMEL-7223: Avoid using hard-coded ports for the unit-tests

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/fda86665
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/fda86665
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/fda86665

Branch: refs/heads/camel-2.11.x
Commit: fda86665a2cb8da8f94289bdadc40ea697630a47
Parents: d302bbe
Author: Babak Vahdat <bvahdat@apache.org>
Authored: Tue Feb 18 23:08:17 2014 +0100
Committer: Babak Vahdat <bvahdat@apache.org>
Committed: Tue Feb 18 23:08:17 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/solr/SolrSpringTest.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/fda86665/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrSpringTest.java
----------------------------------------------------------------------
diff --git a/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrSpringTest.java
b/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrSpringTest.java
index 239ed1a..5ac3baa 100644
--- a/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrSpringTest.java
+++ b/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrSpringTest.java
@@ -42,7 +42,7 @@ import static org.junit.Assert.assertEquals;
 public class SolrSpringTest extends AbstractJUnit4SpringContextTests {
 
     static {
-        System.setProperty("SolrServer.Port", Integer.toString(SolrComponentTestSupport.PORT));
+        System.setProperty("SolrServer.Port", Integer.toString(SolrComponentTestSupport.getPort()));
     }
 
     private static JettySolrRunner solrRunner;
@@ -158,10 +158,10 @@ public class SolrSpringTest extends AbstractJUnit4SpringContextTests
{
         System.setProperty("solr.directoryFactory", "solr.RAMDirectoryFactory");
 
         // Start a Solr instance.
-        solrRunner = new JettySolrRunner("/solr", SolrComponentTestSupport.PORT);
+        solrRunner = new JettySolrRunner("/solr", SolrComponentTestSupport.getPort());
         solrRunner.start();
 
-        solrServer = new HttpSolrServer("http://localhost:" + SolrComponentTestSupport.PORT
+ "/solr");
+        solrServer = new HttpSolrServer("http://localhost:" + SolrComponentTestSupport.getPort()
+ "/solr");
     }
 
     @AfterClass


Mime
View raw message