cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1481946 - in /cxf/branches/2.7.x-fixes: ./ systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
Date Mon, 13 May 2013 15:59:57 GMT
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());



Mime
View raw message