This is an automated email from the ASF dual-hosted git repository.
jamesnetherton 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 5ba61c33fe Make JolokiaKubernetesClientSSLTest.clientSSLAuthentication
check for expected exception type on JDK 25
5ba61c33fe is described below
commit 5ba61c33fe113fe641bcea28d05f6c8286a1badd
Author: James Netherton <[email protected]>
AuthorDate: Fri Oct 31 09:51:38 2025 +0000
Make JolokiaKubernetesClientSSLTest.clientSSLAuthentication check for
expected exception type on JDK 25
Fixes #7894
---
.../component/jolokia/it/JolokiaKubernetesClientSSLTest.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git
a/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaKubernetesClientSSLTest.java
b/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaKubernetesClientSSLTest.java
index 9363b9fed5..11b03122c3 100644
---
a/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaKubernetesClientSSLTest.java
+++
b/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaKubernetesClientSSLTest.java
@@ -28,11 +28,12 @@ import io.smallrye.certs.Format;
import io.smallrye.certs.junit5.Certificate;
import io.smallrye.certs.junit5.Certificates;
import org.apache.http.NoHttpResponseException;
+import org.apache.http.client.ClientProtocolException;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.hamcrest.Matchers.equalTo;
-import static org.junit.jupiter.api.Assertions.assertThrows;
@Certificates(baseDir = "target/certs", certificates = {
@Certificate(name = "kubernetes-service-cert", formats = {
Format.PKCS12,
@@ -53,12 +54,12 @@ class JolokiaKubernetesClientSSLTest {
@Test
void clientSSLAuthentication() {
// Plain HTTP should be disabled
- assertThrows(NoHttpResponseException.class, () -> {
+ assertThatThrownBy(() -> {
RestAssured.given()
.get("/jolokia/")
.then()
.statusCode(200);
- });
+ }).isInstanceOfAny(NoHttpResponseException.class,
ClientProtocolException.class);
RestAssured.config =
RestAssured.config().with().sslConfig(getSSLConfig());
RestAssured.given()