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 2013/05/13 17:59:57 UTC

svn commit: r1481946 - in /cxf/branches/2.7.x-fixes: ./ systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java

Author: sergeyb
Date: Mon May 13 15:59:57 2013
New Revision: 1481946

URL: http://svn.apache.org/r1481946
Log:
Merged revisions 1481945 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1481945 | sergeyb | 2013-05-13 16:52:27 +0100 (Mon, 13 May 2013) | 1 line
  
  [CXF-5012] Adding a test checking that WAE is thrown from proxy if no mappers are available
........

Modified:
    cxf/branches/2.7.x-fixes/   (props changed)
    cxf/branches/2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
    svn:mergeinfo = /cxf/trunk:1481945

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java?rev=1481946&r1=1481945&r2=1481946&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java (original)
+++ cxf/branches/2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java Mon May 13 15:59:57 2013
@@ -504,6 +504,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());