Author: cschneider
Date: Thu Jun 27 23:42:34 2013
New Revision: 1497613

URL: http://svn.apache.org/r1497613
Log:
Changing port for test

Modified:
    
cxf/dosgi/trunk/systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/TestExportRestService.java

Modified: 
cxf/dosgi/trunk/systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/TestExportRestService.java
URL: 
http://svn.apache.org/viewvc/cxf/dosgi/trunk/systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/TestExportRestService.java?rev=1497613&r1=1497612&r2=1497613&view=diff
==============================================================================
--- 
cxf/dosgi/trunk/systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/TestExportRestService.java
 (original)
+++ 
cxf/dosgi/trunk/systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/TestExportRestService.java
 Thu Jun 27 23:42:34 2013
@@ -41,12 +41,14 @@ public class TestExportRestService exten
 
     @Inject
     BundleContext bundleContext;
+    
+    String webPort = "9091";
 
     @Configuration
-    public static Option[] configure() throws Exception {
+    public Option[] configure() throws Exception {
         return new Option[] {
                 MultiBundleTools.getDistroWithDiscovery(),
-                systemProperty("org.osgi.service.http.port").value("9090"),
+                systemProperty("org.osgi.service.http.port").value(webPort),
                 
systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("INFO"),
                 mavenBundle().groupId("org.apache.servicemix.bundles")
                     
.artifactId("org.apache.servicemix.bundles.junit").version("4.9_2"),
@@ -60,11 +62,10 @@ public class TestExportRestService exten
 
     @Test
     public void testEndpointAvailable() throws Exception {
-        waitWebPage("http://localhost:9090/greeter/greeter/greeting/Chris";);
+        waitWebPage("http://localhost:"; + webPort + 
"/greeter/greeter/greeting/Chris");
         try {
-            
             
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
-            GreeterService greeterService = 
JAXRSClientFactory.create("http://localhost:9090/greeter";,
+            GreeterService greeterService = 
JAXRSClientFactory.create("http://localhost:"; + webPort + "/greeter",
                                                                       
GreeterService.class);
             GreeterInfo result = greeterService.greetMe("Chris");
             GreetingPhrase greeting = result.getGreetings().get(0);


Reply via email to