Skip to content

Commit

Permalink
[CAMEL-19935]upgrade to CXF 4.0.3
Browse files Browse the repository at this point in the history
(cherry picked from commit 49eda4f)
  • Loading branch information
ffang committed Oct 4, 2023
1 parent b20f521 commit db8f65b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ public void testInvokingSimpleServerWithParams() throws Exception {
public void testInvokingAWrongServer() throws Exception {
Exchange reply = sendSimpleMessage(getWrongEndpointUri());
assertNotNull(reply.getException(), "We should get the exception here");
assertTrue(reply.getException() instanceof ConnectException);
assertTrue(reply.getException().getCause() instanceof ConnectException);

//Test the data format PAYLOAD
reply = sendSimpleMessageWithPayloadMessage(getWrongEndpointUri() + "&dataFormat=PAYLOAD");
assertNotNull(reply.getException(), "We should get the exception here");
assertTrue(reply.getException() instanceof ConnectException);
assertTrue(reply.getException().getCause() instanceof ConnectException);

//Test the data format MESSAGE
reply = sendSimpleMessageWithRawMessage(getWrongEndpointUri() + "&dataFormat=RAW");
assertNotNull(reply.getException(), "We should get the exception here");
assertTrue(reply.getException() instanceof ConnectException);
assertTrue(reply.getException().getCause() instanceof ConnectException);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void testInvokingTrustRoute() throws Exception {
public void testInvokingNoTrustRoute() throws Exception {
Exchange reply = sendJaxWsMessage("direct:noTrust");
assertTrue(reply.isFailed(), "We expect the exception here");
Throwable e = reply.getException();
Throwable e = reply.getException().getCause();
assertEquals("javax.net.ssl.SSLHandshakeException", e.getClass().getCanonicalName());
}

Expand Down
4 changes: 2 additions & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@
<cobertura-maven-plugin-version>2.7</cobertura-maven-plugin-version>
<couchbase-client-version>3.4.9</couchbase-client-version>
<curator-version>5.5.0</curator-version>
<cxf-version>4.0.2</cxf-version>
<cxf-codegen-plugin-version>4.0.2</cxf-codegen-plugin-version>
<cxf-version>4.0.3</cxf-version>
<cxf-codegen-plugin-version>4.0.3</cxf-codegen-plugin-version>
<!-- cxf-xjc is not released as often -->
<cxf-xjc-plugin-version>4.0.0</cxf-xjc-plugin-version>
<cxf-xjc-utils-version>4.0.0</cxf-xjc-utils-version>
Expand Down

0 comments on commit db8f65b

Please sign in to comment.