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:52:27 UTC
svn commit: r1481945 -
/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
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());