Author: mmao
Date: Thu Nov  2 00:07:26 2006
New Revision: 470267

URL: http://svn.apache.org/viewvc?view=rev&rev=470267
Log:
Encode only the query.

Modified:
    
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java

Modified: 
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java?view=diff&rev=470267&r1=470266&r2=470267
==============================================================================
--- 
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
 (original)
+++ 
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
 Thu Nov  2 00:07:26 2006
@@ -534,9 +534,9 @@
     }
     
     public void testGetGreetMeFromQuery() throws Exception {
-        String url = 
-            
URLEncoder.encode("http://localhost:9000/SoapContext/SoapPort/greetMe?me=cxf 
(was CeltixFire)",
-                              "UTF-8"); 
+        String url = "http://localhost:9000/SoapContext/SoapPort/greetMe?"; 
+            + URLEncoder.encode("me=cxf (was CeltixFire)", "UTF-8"); 
+        
         HttpURLConnection httpConnection = getHttpConnection(url);    
         httpConnection.connect();        
         
@@ -560,7 +560,7 @@
         String response = (String) 
xu.getValue("//ns2:greetMeResponse/ns2:responseType/text()", 
                                                body, 
                                                XPathConstants.STRING);
-        assertEquals("Hello cxf", response);
+        assertEquals("Hello cxf (was CeltixFire)", response);
     }    
     
     public static void main(String[] args) {


Reply via email to