Author: ningjiang
Date: Mon Feb  2 04:30:16 2009
New Revision: 739922

URL: http://svn.apache.org/viewvc?rev=739922&view=rev
Log:
CXF-2019 Fixed the system test failure in windows

Modified:
    
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java

Modified: 
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java?rev=739922&r1=739921&r2=739922&view=diff
==============================================================================
--- 
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java
 (original)
+++ 
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java
 Mon Feb  2 04:30:16 2009
@@ -34,8 +34,14 @@
 public class ClientServerSessionTest extends AbstractBusClientServerTestBase {
     @BeforeClass
     public static void startServers() throws Exception {
-        assertTrue("server did not launch correctly",
-                   launchServer(SessionServer.class));
+        // Jetty server only detects the the port of the same process in 
Windows box
+        if (System.getProperty("os.name").startsWith("Windows")) {
+            assertTrue("server did not launch correctly",
+                   launchServer(SessionServer.class, true));
+        } else {
+            assertTrue("server did not launch correctly",
+                       launchServer(SessionServer.class));
+        }
     }
     
     


Reply via email to