You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2011/02/14 17:28:50 UTC

svn commit: r1070558 - in /cxf/trunk/systests/jaxrs/src/test: java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java resources/jaxrs/WEB-INF/beans.xml

Author: sergeyb
Date: Mon Feb 14 16:28:49 2011
New Revision: 1070558

URL: http://svn.apache.org/viewvc?rev=1070558&view=rev
Log:
Fixing a broken system jaxrs test

Modified:
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
    cxf/trunk/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java?rev=1070558&r1=1070557&r2=1070558&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java (original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java Mon Feb 14 16:28:49 2011
@@ -338,7 +338,7 @@ public class JAXRSClientServerSpringBook
     @Test
     public void testReaderWriterFromJaxrsFilters() throws Exception {
         String endpointAddress =
-            "http://localhost:" + PORT + "/the/thebooks5/bookstore/books/convert2/123";
+            "http://localhost:" + PORT + "/the/thebooksWithStax/bookstore/books/convert2/123";
         WebClient wc = WebClient.create(endpointAddress);
         wc.type("application/xml").accept("application/xml");
         Book2 b = new Book2();
@@ -353,7 +353,7 @@ public class JAXRSClientServerSpringBook
     @Test
     public void testReaderWriterFromInterceptors() throws Exception {
         String endpointAddress =
-            "http://localhost:" + PORT + "/the/thebooks5/bookstore/books/convert";
+            "http://localhost:" + PORT + "/the/thebooksWithStax/bookstore/books/convert";
         WebClient wc = WebClient.create(endpointAddress);
         wc.type("application/xml").accept("application/xml");
         Book2 b = new Book2();

Modified: cxf/trunk/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml?rev=1070558&r1=1070557&r2=1070558&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml (original)
+++ cxf/trunk/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml Mon Feb 14 16:28:49 2011
@@ -102,6 +102,17 @@ http://cxf.apache.org/schemas/core.xsd">
 
     <jaxrs:providers>
        <ref bean="xsltProvider"/>
+    </jaxrs:providers> 
+    
+  </jaxrs:server>
+  
+  <jaxrs:server id="bookserviceWithStax"
+		        address="/thebooksWithStax/bookstore">
+    <jaxrs:serviceBeans>
+      <ref bean="serviceBean" />
+    </jaxrs:serviceBeans>		  
+
+    <jaxrs:providers>
        <bean class="org.apache.cxf.systest.jaxrs.XmlStreamReaderProvider"/>
        <bean class="org.apache.cxf.systest.jaxrs.XmlStreamWriterProvider"/>
     </jaxrs:providers>