This is an automated email from the ASF dual-hosted git repository. zhfeng pushed a commit to branch 3.8.x in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 62cbecd2226f1855ecf951c4ea7ac0bf06763965 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;
