You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2012/06/06 08:49:32 UTC
svn commit: r1346761 - in /camel/branches/camel-2.9.x:
components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfSimpleRouterWithUnwrappedStyleTest.java
parent/pom.xml
Author: ningjiang
Date: Wed Jun 6 06:49:32 2012
New Revision: 1346761
URL: http://svn.apache.org/viewvc?rev=1346761&view=rev
Log:
CAMEL-5337 upgrade cxf version to 2.5.4
Modified:
camel/branches/camel-2.9.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfSimpleRouterWithUnwrappedStyleTest.java
camel/branches/camel-2.9.x/parent/pom.xml
Modified: camel/branches/camel-2.9.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfSimpleRouterWithUnwrappedStyleTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfSimpleRouterWithUnwrappedStyleTest.java?rev=1346761&r1=1346760&r2=1346761&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfSimpleRouterWithUnwrappedStyleTest.java (original)
+++ camel/branches/camel-2.9.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfSimpleRouterWithUnwrappedStyleTest.java Wed Jun 6 06:49:32 2012
@@ -22,8 +22,12 @@ import org.apache.cxf.frontend.ClientFac
import org.apache.cxf.frontend.ClientProxyFactoryBean;
import org.apache.cxf.frontend.ServerFactoryBean;
+import org.junit.Ignore;
import org.junit.Test;
+@Ignore("As the refelection can't tell the paramenter name from SEI without annonation, "
+ + "CXF cannot send a meaningful request for unwrapped message."
+ + "We need to use the annontated SEI for testing")
public class CxfSimpleRouterWithUnwrappedStyleTest extends CxfSimpleRouterTest {
private String routerEndpointURI = "cxf://" + getRouterAddress() + "?" + SERVICE_CLASS + "&wrappedStyle=false";
@@ -46,7 +50,7 @@ public class CxfSimpleRouterWithUnwrappe
protected HelloService getCXFClient() throws Exception {
ClientProxyFactoryBean proxyFactory = new ClientProxyFactoryBean();
ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean();
- clientBean.setAddress(getServiceAddress());
+ clientBean.setAddress(getRouterAddress());
clientBean.setServiceClass(HelloService.class);
clientBean.getServiceFactory().setWrapped(false);
HelloService client = (HelloService) proxyFactory.create();
@@ -57,5 +61,17 @@ public class CxfSimpleRouterWithUnwrappe
public void testOnwayInvocation() throws Exception {
// ignore the invocation without parameter, as the document-literal doesn't support the invocation without parameter.
}
+
+ @Test
+ public void testInvokingServiceFromCXFClient() throws Exception {
+ HelloService client = getCXFClient();
+ Boolean result = client.echoBoolean(true);
+ assertEquals("we should get the right answer from router", true, result);
+ // The below invocation is failed with CXF 2.6.1 as the request are all start with <arg0>
+ String str = client.echo("hello world");
+ assertEquals("we should get the right answer from router", "echo hello world", str);
+
+ }
}
+
Modified: camel/branches/camel-2.9.x/parent/pom.xml
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/parent/pom.xml?rev=1346761&r1=1346760&r2=1346761&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/parent/pom.xml (original)
+++ camel/branches/camel-2.9.x/parent/pom.xml Wed Jun 6 06:49:32 2012
@@ -57,7 +57,7 @@
<commons-net-version>2.2</commons-net-version>
<commons-pool-version>1.5.6</commons-pool-version>
<concurrentlinkedhashmap.version>1.2</concurrentlinkedhashmap.version>
- <cxf-version>2.5.3</cxf-version>
+ <cxf-version>2.5.4</cxf-version>
<cxf-xjc-utils-version>2.4.0</cxf-xjc-utils-version>
<derby-version>10.8.2.2</derby-version>
<dnsjava-version>2.1.1</dnsjava-version>