From 4076a2dac2a27e20d82367eec766404ec7ac5915 Mon Sep 17 00:00:00 2001 From: Mitchell Gale Date: Wed, 2 Aug 2023 11:50:18 -0700 Subject: [PATCH] Applying change 809e656 Signed-off-by: Mitchell Gale --- .../sql/opensearch/client/OpenSearchRestClientTest.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/opensearch/src/test/java/org/opensearch/sql/opensearch/client/OpenSearchRestClientTest.java b/opensearch/src/test/java/org/opensearch/sql/opensearch/client/OpenSearchRestClientTest.java index cceb6de995..7f968733c1 100644 --- a/opensearch/src/test/java/org/opensearch/sql/opensearch/client/OpenSearchRestClientTest.java +++ b/opensearch/src/test/java/org/opensearch/sql/opensearch/client/OpenSearchRestClientTest.java @@ -19,7 +19,6 @@ import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -import static org.opensearch.core.xcontent.MediaTypeParserRegistry.setDefaultMediaType; import static org.opensearch.sql.opensearch.client.OpenSearchClient.META_CLUSTER_NAME; import static org.opensearch.sql.opensearch.data.type.OpenSearchDataType.MappingType; @@ -35,7 +34,6 @@ import lombok.SneakyThrows; import org.apache.commons.lang3.reflect.FieldUtils; import org.apache.lucene.search.TotalHits; -import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayNameGeneration; import org.junit.jupiter.api.DisplayNameGenerator; @@ -103,11 +101,6 @@ void setUp() { client = new OpenSearchRestClient(restClient); } - @BeforeAll - static void setUpJSON() { - setDefaultMediaType(XContentType.JSON); - } - @Test void is_index_exist() throws IOException { when(restClient.indices()