cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [3/3] cxf git commit: Adding a disabled test confirming a reflection fix for supporting custom verbs over Java HTTP does not work if it is HTTPS
Date Tue, 24 Jan 2017 17:07:57 GMT
Adding a disabled test confirming a reflection fix for supporting custom verbs over Java HTTP
does not work if it is HTTPS


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/db82c014
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/db82c014
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/db82c014

Branch: refs/heads/3.1.x-fixes
Commit: db82c01471f42b8622ae730c740a2c3fad4bc385
Parents: 7aa0542
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Jan 24 14:12:59 2017 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Jan 24 17:07:32 2017 +0000

----------------------------------------------------------------------
 .../jaxrs/security/JAXRSHttpsBookTest.java      | 22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/db82c014/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSHttpsBookTest.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSHttpsBookTest.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSHttpsBookTest.java
index fb42170..263156f 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSHttpsBookTest.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSHttpsBookTest.java
@@ -111,6 +111,28 @@ public class JAXRSHttpsBookTest extends AbstractBusClientServerTestBase
{
     }
     
     @Test
+    @Ignore
+    public void testCustomVerbProxyFromSpringWildcard() throws Exception {
+        ClassPathXmlApplicationContext ctx =
+            new ClassPathXmlApplicationContext(new String[] {CLIENT_CONFIG_FILE4});
+        Object bean = ctx.getBean("bookService.proxyFactory");
+        assertNotNull(bean);
+        JAXRSClientFactoryBean cfb = (JAXRSClientFactoryBean) bean;
+        
+        BookStore bs = cfb.create(BookStore.class);
+        WebClient.getConfig(bs).getRequestContext().put("use.httpurlconnection.method.reflection",
true);
+        // CXF RS Client code will set this property to true if the http verb is unknown
+        // and this property is not already set. The async conduit is loaded in the tests
module
+        // but we do want to test HTTPUrlConnection reflection hence we set this property
to false
+        WebClient.getConfig(bs).getRequestContext().put("use.async.http.conduit", false);
+        
+        Book book = bs.retrieveBook(new Book("Retrieve", 123L));
+        assertEquals("Retrieve", book.getName());
+        
+        ctx.close();
+    }
+    
+    @Test
     public void testGetBook123WebClientFromSpringWildcard() throws Exception {
         ClassPathXmlApplicationContext ctx =
             new ClassPathXmlApplicationContext(new String[] {CLIENT_CONFIG_FILE5});


Mime
View raw message