Skip to content

Commit b93dd04

Browse files
Upgrade Quarkus CXF to 3.33.0
1 parent a1397ad commit b93dd04

File tree

14 files changed

+688
-653
lines changed

14 files changed

+688
-653
lines changed

integration-test-groups/cxf-soap/cxf-soap-server/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
<artifactId>quarkus-cxf-test-util</artifactId>
7070
<scope>test</scope>
7171
</dependency>
72+
<dependency>
73+
<groupId>io.quarkiverse.cxf</groupId>
74+
<artifactId>quarkus-cxf-test-util-internal</artifactId>
75+
<scope>test</scope>
76+
</dependency>
7277
</dependencies>
7378

7479
<build>

integration-test-groups/cxf-soap/cxf-soap-server/src/test/java/org/apache/camel/quarkus/component/cxf/soap/server/it/CxfSoapServiceTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import com.helloworld.service.HelloPortType;
2020
import com.helloworld.service.HelloService;
21-
import io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil;
21+
import io.quarkiverse.cxf.test.QuarkusCxfTestUtil;
2222
import io.quarkus.runtime.LaunchMode;
2323
import io.quarkus.test.junit.QuarkusTest;
2424
import io.restassured.RestAssured;
@@ -33,7 +33,7 @@
3333
import org.junit.jupiter.params.ParameterizedTest;
3434
import org.junit.jupiter.params.provider.ValueSource;
3535

36-
import static io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil.anyNs;
36+
import static io.quarkiverse.cxf.test.internal.QuarkusCxfInternalTestUtil.anyNs;
3737

3838
@QuarkusTest
3939
class CxfSoapServiceTest {
@@ -79,7 +79,7 @@ public void codeFirstWsdl() {
7979

8080
@Test
8181
public void codeFirstSoapService() {
82-
final CodeFirstService client = QuarkusCxfClientTestUtil.getClient(CodeFirstService.TARGET_NS, CodeFirstService.class,
82+
final CodeFirstService client = QuarkusCxfTestUtil.getClient(CodeFirstService.TARGET_NS, CodeFirstService.class,
8383
"/soapservice/codefirst");
8484
Assertions.assertEquals("Hello Joe code first", client.hello("Joe"));
8585
Assertions.assertEquals("Good bye Laszlo code first", client.goodBye("Laszlo"));
@@ -88,21 +88,21 @@ public void codeFirstSoapService() {
8888
@ParameterizedTest
8989
@ValueSource(strings = { "raw", "cxf-message" })
9090
public void testCodeFirstSoapServiceDataFormats(String dataFormat) {
91-
final TextService textService = QuarkusCxfClientTestUtil.getClient(TextService.class,
91+
final TextService textService = QuarkusCxfTestUtil.getClient(TextService.class,
9292
String.format("/soapservice/text-route-%s-data-format", dataFormat));
9393
assertTextService(textService, "Hello there from text service and " + dataFormat);
9494
}
9595

9696
@Test
9797
public void echoServiceResponseFromRoute() {
98-
final TextService textService = QuarkusCxfClientTestUtil.getClient(TextService.class,
98+
final TextService textService = QuarkusCxfTestUtil.getClient(TextService.class,
9999
"/soapservice/text-service-route");
100100
assertTextService(textService, "Hello there from text service route!");
101101
}
102102

103103
@Test
104104
public void echoServiceResponseFromImpl() {
105-
final TextService textService = QuarkusCxfClientTestUtil.getClient(TextService.class, "/soapservice/text-service-impl");
105+
final TextService textService = QuarkusCxfTestUtil.getClient(TextService.class, "/soapservice/text-service-impl");
106106
assertTextService(textService, "Hello there from text service impl!");
107107
}
108108

integration-test-groups/cxf-soap/cxf-soap-ws-security-server/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
<artifactId>quarkus-cxf-test-util</artifactId>
6161
<scope>test</scope>
6262
</dependency>
63+
<dependency>
64+
<groupId>io.quarkiverse.cxf</groupId>
65+
<artifactId>quarkus-cxf-test-util-internal</artifactId>
66+
<scope>test</scope>
67+
</dependency>
6368
<dependency>
6469
<groupId>org.assertj</groupId>
6570
<artifactId>assertj-core</artifactId>

integration-test-groups/cxf-soap/cxf-soap-ws-security-server/src/test/java/org/apache/camel/quarkus/component/cxf/soap/securitypolicy/server/cxf/way/it/CxfWssSecurityPolicyServerCxfWayTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.io.IOException;
2020
import java.util.Map;
2121

22-
import io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil;
22+
import io.quarkiverse.cxf.test.QuarkusCxfTestUtil;
2323
import io.quarkus.test.junit.QuarkusTest;
2424
import io.restassured.RestAssured;
2525
import io.restassured.config.RestAssuredConfig;
@@ -31,7 +31,7 @@
3131
import org.hamcrest.Matchers;
3232
import org.junit.jupiter.api.Test;
3333

34-
import static io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil.anyNs;
34+
import static io.quarkiverse.cxf.test.internal.QuarkusCxfInternalTestUtil.anyNs;
3535
import static io.restassured.RestAssured.given;
3636

3737
@QuarkusTest
@@ -76,7 +76,7 @@ void unencryptedUnsigned() throws IOException {
7676

7777
given()
7878
.body(SOAP_REQUEST)
79-
.when().post(QuarkusCxfClientTestUtil.getEndpointUrl(getPlainClient()))
79+
.when().post(QuarkusCxfTestUtil.getEndpointUrl(getPlainClient()))
8080
.then()
8181
.statusCode(500)
8282
.body(
@@ -178,7 +178,7 @@ void fakeSigned() throws IOException {
178178

179179
given()
180180
.body(SOAP_REQUEST)
181-
.when().post(QuarkusCxfClientTestUtil.getEndpointUrl(getPlainClient()))
181+
.when().post(QuarkusCxfTestUtil.getEndpointUrl(getPlainClient()))
182182
.then()
183183
.statusCode(500)
184184
.body(
@@ -195,7 +195,7 @@ void wsdl() {
195195
config.getXmlConfig().namespaceAware(false);
196196
given()
197197
.config(config)
198-
.when().get(QuarkusCxfClientTestUtil.getEndpointUrl(getPlainClient()) + "?wsdl")
198+
.when().get(QuarkusCxfTestUtil.getEndpointUrl(getPlainClient()) + "?wsdl")
199199
.then()
200200
.statusCode(200)
201201
.body(
@@ -206,7 +206,7 @@ void wsdl() {
206206
}
207207

208208
WssSecurityPolicyHelloServiceCxfWay getPlainClient() {
209-
return QuarkusCxfClientTestUtil.getClient(
209+
return QuarkusCxfTestUtil.getClient(
210210
"https://quarkiverse.github.io/quarkiverse-docs/quarkus-cxf/ws-securitypolicy",
211211
WssSecurityPolicyHelloServiceCxfWay.class,
212212
"/soapservice/security-policy-hello-cxf-way");

integration-test-groups/cxf-soap/cxf-soap-ws-security-server/src/test/java/org/apache/camel/quarkus/component/cxf/soap/securitypolicy/server/it/CxfWssSecurityPolicyServerTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.io.IOException;
2020
import java.util.Map;
2121

22-
import io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil;
22+
import io.quarkiverse.cxf.test.QuarkusCxfTestUtil;
2323
import io.quarkus.test.junit.QuarkusTest;
2424
import io.restassured.RestAssured;
2525
import io.restassured.config.RestAssuredConfig;
@@ -30,7 +30,7 @@
3030
import org.hamcrest.Matchers;
3131
import org.junit.jupiter.api.Test;
3232

33-
import static io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil.anyNs;
33+
import static io.quarkiverse.cxf.test.internal.QuarkusCxfInternalTestUtil.anyNs;
3434
import static io.restassured.RestAssured.given;
3535

3636
@QuarkusTest
@@ -75,7 +75,7 @@ void unencryptedUnsigned() throws IOException {
7575

7676
given()
7777
.body(SOAP_REQUEST)
78-
.when().post(QuarkusCxfClientTestUtil.getEndpointUrl(getPlainClient()))
78+
.when().post(QuarkusCxfTestUtil.getEndpointUrl(getPlainClient()))
7979
.then()
8080
.statusCode(500)
8181
.body(
@@ -177,7 +177,7 @@ void fakeSigned() throws IOException {
177177

178178
given()
179179
.body(SOAP_REQUEST)
180-
.when().post(QuarkusCxfClientTestUtil.getEndpointUrl(getPlainClient()))
180+
.when().post(QuarkusCxfTestUtil.getEndpointUrl(getPlainClient()))
181181
.then()
182182
.statusCode(500)
183183
.body(
@@ -194,7 +194,7 @@ void wsdl() {
194194
config.getXmlConfig().namespaceAware(false);
195195
given()
196196
.config(config)
197-
.when().get(QuarkusCxfClientTestUtil.getEndpointUrl(getPlainClient()) + "?wsdl")
197+
.when().get(QuarkusCxfTestUtil.getEndpointUrl(getPlainClient()) + "?wsdl")
198198
.then()
199199
.statusCode(200)
200200
.body(
@@ -205,7 +205,7 @@ void wsdl() {
205205
}
206206

207207
WssSecurityPolicyHelloService getPlainClient() {
208-
return QuarkusCxfClientTestUtil.getClient(
208+
return QuarkusCxfTestUtil.getClient(
209209
"https://quarkiverse.github.io/quarkiverse-docs/quarkus-cxf/ws-securitypolicy",
210210
WssSecurityPolicyHelloService.class,
211211
"/soapservice/security-policy-hello");

integration-test-groups/cxf-soap/cxf-soap-ws-security-server/src/test/java/org/apache/camel/quarkus/component/cxf/soap/wss/server/it/CxfSoapWssServerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import javax.security.auth.callback.CallbackHandler;
2525
import javax.security.auth.callback.UnsupportedCallbackException;
2626

27-
import io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil;
27+
import io.quarkiverse.cxf.test.QuarkusCxfTestUtil;
2828
import io.quarkus.test.common.QuarkusTestResource;
2929
import io.quarkus.test.junit.QuarkusTest;
3030
import io.restassured.RestAssured;
@@ -39,7 +39,7 @@
3939
import org.hamcrest.Matchers;
4040
import org.junit.jupiter.api.Test;
4141

42-
import static io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil.anyNs;
42+
import static io.quarkiverse.cxf.test.internal.QuarkusCxfInternalTestUtil.anyNs;
4343

4444
@QuarkusTest
4545
@QuarkusTestResource(value = CxfWssServerTestResource.class)
@@ -90,7 +90,7 @@ void usernameTokenBadPassword() throws IOException {
9090
}
9191

9292
static WssRounderService rounderClient(String username, String password) {
93-
final WssRounderService client = QuarkusCxfClientTestUtil.getClient(WssRounderService.class, "/soapservice/rounder");
93+
final WssRounderService client = QuarkusCxfTestUtil.getClient(WssRounderService.class, "/soapservice/rounder");
9494

9595
final CallbackHandler passwordCallback = new CallbackHandler() {
9696
@Override
@@ -117,7 +117,7 @@ public void handle(Callback[] callbacks) throws IOException, UnsupportedCallback
117117

118118
@Test
119119
void anonymous() throws IOException {
120-
final WssRounderService client = QuarkusCxfClientTestUtil.getClient(WssRounderService.class, "/soapservice/rounder");
120+
final WssRounderService client = QuarkusCxfTestUtil.getClient(WssRounderService.class, "/soapservice/rounder");
121121
/* Make sure that it fails properly when called without a password */
122122
Assertions.assertThatExceptionOfType(jakarta.xml.ws.soap.SOAPFaultException.class)
123123
.isThrownBy(() -> client.round(2.8))

integration-test-groups/cxf-soap/cxf-soap-ws-trust/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@
6565
<artifactId>quarkus-cxf-test-util</artifactId>
6666
<scope>test</scope>
6767
</dependency>
68+
<dependency>
69+
<groupId>io.quarkiverse.cxf</groupId>
70+
<artifactId>quarkus-cxf-test-util-internal</artifactId>
71+
<scope>test</scope>
72+
</dependency>
6873
<dependency>
6974
<groupId>org.assertj</groupId>
7075
<artifactId>assertj-core</artifactId>

integration-test-groups/cxf-soap/cxf-soap-ws-trust/src/test/java/org/apache/camel/quarkus/component/cxf/soap/it/ws/trust/CxfWsTrustTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import javax.xml.namespace.QName;
2323

24-
import io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil;
24+
import io.quarkiverse.cxf.test.QuarkusCxfTestUtil;
2525
import io.quarkus.test.junit.QuarkusTest;
2626
import io.restassured.RestAssured;
2727
import io.restassured.config.RestAssuredConfig;
@@ -38,7 +38,7 @@
3838
import org.hamcrest.Matchers;
3939
import org.junit.jupiter.api.Test;
4040

41-
import static io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil.anyNs;
41+
import static io.quarkiverse.cxf.test.internal.QuarkusCxfInternalTestUtil.anyNs;
4242
import static io.restassured.RestAssured.given;
4343

4444
@QuarkusTest
@@ -100,7 +100,7 @@ public void programmaticSts() throws Exception {
100100
final QName stsServiceName = new QName("http://docs.oasis-open.org/ws-sx/ws-trust/200512/", "SecurityTokenService");
101101
final QName stsPortName = new QName("http://docs.oasis-open.org/ws-sx/ws-trust/200512/", "UT_Port");
102102

103-
String stsURL = QuarkusCxfClientTestUtil.getServerUrl()
103+
String stsURL = QuarkusCxfTestUtil.getServerUrl()
104104
+ "/soapservice/jaxws-samples-wsse-policy-trust-sts/SecurityTokenService?wsdl";
105105
setupWsseAndSTSClient(proxy, bus, stsURL, stsServiceName, stsPortName);
106106

@@ -120,7 +120,7 @@ public void programmaticStsNotSet() throws Exception {
120120
TrustHelloService trustHelloService() throws Exception {
121121
final QName serviceName = new QName("https://quarkiverse.github.io/quarkiverse-docs/quarkus-cxf/test/ws-trust",
122122
"TrustHelloService");
123-
final URL wsdlURL = new URL(io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil.getServerUrl()
123+
final URL wsdlURL = new URL(io.quarkiverse.cxf.test.QuarkusCxfTestUtil.getServerUrl()
124124
+ "/soapservice/jaxws-samples-wsse-policy-trust/TrustHelloService?wsdl");
125125
Service service = Service.create(wsdlURL, serviceName);
126126
return (TrustHelloService) service.getPort(TrustHelloService.class);

integration-test-groups/cxf-soap/cxf-soap-ws-trust/src/test/java/org/apache/camel/quarkus/component/cxf/soap/it/ws/trust/cxf/way/CxfWsTrustCxfWayTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import javax.xml.namespace.QName;
2323

24-
import io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil;
24+
import io.quarkiverse.cxf.test.QuarkusCxfTestUtil;
2525
import io.quarkus.test.junit.QuarkusTest;
2626
import io.restassured.RestAssured;
2727
import io.restassured.config.RestAssuredConfig;
@@ -38,7 +38,7 @@
3838
import org.hamcrest.Matchers;
3939
import org.junit.jupiter.api.Test;
4040

41-
import static io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil.anyNs;
41+
import static io.quarkiverse.cxf.test.internal.QuarkusCxfInternalTestUtil.anyNs;
4242
import static io.restassured.RestAssured.given;
4343

4444
@QuarkusTest
@@ -97,15 +97,15 @@ public void programmaticSts() throws Exception {
9797

9898
final QName serviceName = new QName("https://quarkiverse.github.io/quarkiverse-docs/quarkus-cxf/test/ws-trust",
9999
"TrustHelloServiceCxfWay");
100-
final URL wsdlURL = new URL(io.quarkiverse.cxf.test.QuarkusCxfClientTestUtil.getServerUrl()
100+
final URL wsdlURL = new URL(io.quarkiverse.cxf.test.QuarkusCxfTestUtil.getServerUrl()
101101
+ "/soapservice/jaxws-samples-wsse-policy-trust-cxf-way/TrustHelloServiceCxfWay?wsdl");
102102
Service service = Service.create(wsdlURL, serviceName);
103103
TrustHelloServiceCxfWay proxy = service.getPort(TrustHelloServiceCxfWay.class);
104104

105105
final QName stsServiceName = new QName("http://docs.oasis-open.org/ws-sx/ws-trust/200512/", "SecurityTokenService");
106106
final QName stsPortName = new QName("http://docs.oasis-open.org/ws-sx/ws-trust/200512/", "UT_Port");
107107

108-
String stsURL = QuarkusCxfClientTestUtil.getServerUrl()
108+
String stsURL = QuarkusCxfTestUtil.getServerUrl()
109109
+ "/soapservice/jaxws-samples-wsse-policy-trust-sts/SecurityTokenService?wsdl";
110110
setupWsseAndSTSClient(proxy, bus, stsURL, stsServiceName, stsPortName);
111111

integration-tests/cxf-soap-grouped/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
<artifactId>quarkus-cxf-test-util</artifactId>
100100
<scope>test</scope>
101101
</dependency>
102+
<dependency>
103+
<groupId>io.quarkiverse.cxf</groupId>
104+
<artifactId>quarkus-cxf-test-util-internal</artifactId>
105+
<scope>test</scope>
106+
</dependency>
102107
<dependency>
103108
<groupId>io.quarkus</groupId>
104109
<artifactId>quarkus-junit</artifactId>

0 commit comments

Comments
 (0)