File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
jaxrs-client/jaxrs-client-2.0-testing
jaxrs/jaxrs-2.0/jaxrs-2.0-cxf-3.2/javaagent Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ plugins {
3
3
}
4
4
5
5
dependencies {
6
- testInstrumentation(project(" :instrumentation:http-url-connection:javaagent" ))
7
-
8
6
testImplementation(" javax.ws.rs:javax.ws.rs-api:2.0.1" )
9
7
10
8
testLibrary(" org.glassfish.jersey.core:jersey-client:2.0" )
@@ -17,6 +15,8 @@ dependencies {
17
15
testImplementation(" javax.xml.bind:jaxb-api:2.2.3" )
18
16
19
17
testInstrumentation(project(" :instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent" ))
18
+ testInstrumentation(project(" :instrumentation:http-url-connection:javaagent" ))
19
+ testInstrumentation(project(" :instrumentation:java-http-client:javaagent" ))
20
20
21
21
latestDepTestLibrary(" org.glassfish.jersey.inject:jersey-hk2:2.+" )
22
22
latestDepTestLibrary(" org.glassfish.jersey.core:jersey-client:2.+" )
@@ -31,4 +31,6 @@ tasks.withType<Test>().configureEach {
31
31
// required on jdk17
32
32
jvmArgs(" --add-opens=java.base/java.net=ALL-UNNAMED" )
33
33
jvmArgs(" -XX:+IgnoreUnrecognizedVMOptions" )
34
+
35
+ systemProperty(" testLatestDeps" , findProperty(" testLatestDeps" ) as Boolean )
34
36
}
Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ class CxfClientTest extends JaxRsClientTest {
174
174
Throwable clientSpanError (URI uri , Throwable exception ) {
175
175
switch (uri. toString()) {
176
176
case " http://localhost:61/" : // unopened port
177
+ if (exception. getCause() instanceof ConnectException ) {
178
+ exception = exception. getCause()
179
+ }
180
+ break
177
181
case " https://192.0.2.1/" : // non routable address
178
182
if (exception. getCause() != null ) {
179
183
exception = exception. getCause()
@@ -182,6 +186,11 @@ class CxfClientTest extends JaxRsClientTest {
182
186
return exception
183
187
}
184
188
189
+ @Override
190
+ boolean testWithClientParent () {
191
+ ! Boolean . getBoolean(" testLatestDeps" )
192
+ }
193
+
185
194
@Override
186
195
String userAgent () {
187
196
" Apache"
@@ -191,6 +200,7 @@ class CxfClientTest extends JaxRsClientTest {
191
200
ClientBuilder builder () {
192
201
return new ClientBuilderImpl ()
193
202
.property(" http.connection.timeout" , (long ) CONNECT_TIMEOUT_MS )
203
+ .property(" org.apache.cxf.transport.http.forceVersion" , " 1.1" )
194
204
}
195
205
196
206
@Override
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ dependencies {
42
42
testLibrary(" org.apache.cxf:cxf-rt-transports-http-jetty:3.2.0" )
43
43
testLibrary(" org.apache.cxf:cxf-rt-ws-policy:3.2.0" )
44
44
45
- latestDepTestLibrary(" org.eclipse.jetty:jetty-webapp:9 .+" )
45
+ latestDepTestLibrary(" org.eclipse.jetty:jetty-webapp:10 .+" )
46
46
latestDepTestLibrary(" org.apache.cxf:cxf-rt-frontend-jaxrs:3.+" )
47
47
latestDepTestLibrary(" org.apache.cxf:cxf-rt-transports-http-jetty:3.+" )
48
48
latestDepTestLibrary(" org.apache.cxf:cxf-rt-ws-policy:3.+" )
You can’t perform that action at this time.
0 commit comments