cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1436893 - /cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/client/WebClientTest.java
Date Tue, 22 Jan 2013 13:10:18 GMT
Author: sergeyb
Date: Tue Jan 22 13:10:18 2013
New Revision: 1436893

URL: http://svn.apache.org/viewvc?rev=1436893&view=rev
Log:
[CXF-4770] One more test

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/client/WebClientTest.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/client/WebClientTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/client/WebClientTest.java?rev=1436893&r1=1436892&r2=1436893&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/client/WebClientTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/client/WebClientTest.java
Tue Jan 22 13:10:18 2013
@@ -286,6 +286,13 @@ public class WebClientTest extends Asser
         assertNotNull(WebClient.getConfig(proxy2) != null);
     }
     
+    @Test(expected = IllegalArgumentException.class)
+    public void testProxyNull() {
+        // interface
+        BookInterface proxy = JAXRSClientFactory.create("http://foo", BookInterface.class);
+        proxy.getBook(null);
+    }
+    
     private static class ParamConverterProviderImpl implements ParamConverterProvider {
         
         @SuppressWarnings("unchecked")



Mime
View raw message