cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r706675 - /cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
Date Tue, 21 Oct 2008 16:08:45 GMT
Author: sergeyb
Date: Tue Oct 21 09:08:45 2008
New Revision: 706675

URL: http://svn.apache.org/viewvc?rev=706675&view=rev
Log:
JAX-RS : adding a couple of system tests dealing with encoded URLs

Modified:
    cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java

Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java?rev=706675&r1=706674&r2=706675&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
(original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
Tue Oct 21 09:08:45 2008
@@ -33,7 +33,7 @@
 
     @BeforeClass
     public static void startServers() throws Exception {
-        assertTrue("server did not launch correctly", launchServer(BookServerSpring.class));
+        assertTrue("server did not launch correctly", launchServer(BookServerSpring.class,
true));
     }
     
     @Test
@@ -44,6 +44,20 @@
     }
     
     @Test
+    public void testGetBookWithEncodedQueryValue() throws Exception {
+        String endpointAddress =
+            "http://localhost:9080/bookstore/booksquery?id=12%2B3"; 
+        getBook(endpointAddress); 
+    }
+    
+    @Test
+    public void testGetBookWithEncodedPathValue() throws Exception {
+        String endpointAddress =
+            "http://localhost:9080/bookstore/id=12%2B3"; 
+        getBook(endpointAddress); 
+    }
+    
+    @Test
     public void testGetDefaultBook() throws Exception {
         String endpointAddress =
             "http://localhost:9080/bookstore"; 



Mime
View raw message