cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1481945 - /cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
Date Mon, 13 May 2013 15:52:27 GMT
Author: sergeyb
Date: Mon May 13 15:52:27 2013
New Revision: 1481945

URL: http://svn.apache.org/r1481945
Log:
[CXF-5012] Adding a test checking that WAE is thrown from proxy if no mappers are available

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

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java?rev=1481945&r1=1481944&r2=1481945&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
Mon May 13 15:52:27 2013
@@ -505,6 +505,18 @@ public class JAXRSClientServerBookTest e
     }
     
     @Test
+    public void testBookWithExceptionsNoMapper() throws Exception {
+        BookStore store = JAXRSClientFactory.create("http://localhost:" + PORT, 
+                                                    BookStore.class);
+        try {
+            store.getBookWithExceptions(true);
+            fail();
+        } catch (WebApplicationException ex) {
+            assertEquals("notReturned", ex.getResponse().getHeaderString("Status"));
+        }
+    }
+    
+    @Test
     public void testBookWithMultipleExceptions2() throws Exception {
         List<Object> providers = new LinkedList<Object>();
         providers.add(new NotReturnedExceptionMapper());



Mime
View raw message