From 7477d2a6a5bf5c62e1e0e1fa1848e11c16aea2c9 Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 7 Jan 2025 14:26:31 -0600 Subject: [PATCH] nits --- .../org/elasticsearch/client/RestClientBuilderIntegTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/rest/src/test/java/org/elasticsearch/client/RestClientBuilderIntegTests.java b/client/rest/src/test/java/org/elasticsearch/client/RestClientBuilderIntegTests.java index 7eefcdef4239a..aef0b3ba27378 100644 --- a/client/rest/src/test/java/org/elasticsearch/client/RestClientBuilderIntegTests.java +++ b/client/rest/src/test/java/org/elasticsearch/client/RestClientBuilderIntegTests.java @@ -53,7 +53,6 @@ import static org.hamcrest.Matchers.allOf; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.instanceOf; -import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.startsWith; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; @@ -100,7 +99,7 @@ public void testBuilderUsesDefaultSSLContext() throws Exception { if (inFipsJvm()) { // Bouncy Castle throw a different exception assertThat(e, instanceOf(IOException.class)); - assertThat(e.getCause().getClass(), is(javax.net.ssl.SSLException.class)); + assertThat(e.getCause(), instanceOf(javax.net.ssl.SSLException.class)); } else { assertThat(e, instanceOf(SSLHandshakeException.class)); }