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 2017/01/24 14:13:16 UTC
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
Repository: cxf
Updated Branches:
refs/heads/master 306b878d2 -> 73bf3ec4a
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/73bf3ec4
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/73bf3ec4
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/73bf3ec4
Branch: refs/heads/master
Commit: 73bf3ec4a923985ccd9573c7a7c06935a60f6218
Parents: 306b878
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Tue Jan 24 14:12:59 2017 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Tue Jan 24 14:12:59 2017 +0000
----------------------------------------------------------------------
.../jaxrs/security/JAXRSHttpsBookTest.java | 22 ++++++++++++++++++++
1 file changed, 22 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/73bf3ec4/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});