This is an automated email from the ASF dual-hosted git repository.
zhfeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 8352fd2332 [CXF] Fix exception message expectation on windows (#6043)
8352fd2332 is described below
commit 8352fd23327ff1a797d727c2cdb32ab776123c76
Author: Andrej Vaňo <[email protected]>
AuthorDate: Fri Apr 26 06:57:38 2024 +0200
[CXF] Fix exception message expectation on windows (#6043)
---
.../quarkus/component/cxf/soap/wss/client/it/CxfSoapWssClientTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/integration-test-groups/cxf-soap/cxf-soap-ws-security-client/src/test/java/org/apache/camel/quarkus/component/cxf/soap/wss/client/it/CxfSoapWssClientTest.java
b/integration-test-groups/cxf-soap/cxf-soap-ws-security-client/src/test/java/org/apache/camel/quarkus/component/cxf/soap/wss/client/it/CxfSoapWssClientTest.java
index e217d84b14..554f76369c 100644
---
a/integration-test-groups/cxf-soap/cxf-soap-ws-security-client/src/test/java/org/apache/camel/quarkus/component/cxf/soap/wss/client/it/CxfSoapWssClientTest.java
+++
b/integration-test-groups/cxf-soap/cxf-soap-ws-security-client/src/test/java/org/apache/camel/quarkus/component/cxf/soap/wss/client/it/CxfSoapWssClientTest.java
@@ -43,7 +43,6 @@ import org.junit.jupiter.api.Test;
import org.testcontainers.shaded.org.awaitility.Awaitility;
import static org.hamcrest.Matchers.equalTo;
-import static org.hamcrest.Matchers.is;
@QuarkusTest
@QuarkusTestResource(CxfWssClientTestResource.class)
@@ -116,7 +115,7 @@ class CxfSoapWssClientTest {
//always fails because there is no server implementation
createSayHelloWrongClient().sayHelloWrong("Sheldon");
} catch (SOAPFaultException e) {
- return "Connection refused".equals(e.getMessage());
+ return e.getMessage() != null &&
e.getMessage().toLowerCase().contains("connection refused");
}
//can not happen (client does not work)
return false;