File tree Expand file tree Collapse file tree
opensearch/src/test/java/org/opensearch/sql/opensearch/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import static org .mockito .Mockito .never ;
2020import static org .mockito .Mockito .verify ;
2121import static org .mockito .Mockito .when ;
22- import static org .opensearch .core .xcontent .MediaTypeParserRegistry .setDefaultMediaType ;
2322import static org .opensearch .sql .opensearch .client .OpenSearchClient .META_CLUSTER_NAME ;
2423import static org .opensearch .sql .opensearch .data .type .OpenSearchDataType .MappingType ;
2524
3534import lombok .SneakyThrows ;
3635import org .apache .commons .lang3 .reflect .FieldUtils ;
3736import org .apache .lucene .search .TotalHits ;
38- import org .junit .jupiter .api .BeforeAll ;
3937import org .junit .jupiter .api .BeforeEach ;
4038import org .junit .jupiter .api .DisplayNameGeneration ;
4139import org .junit .jupiter .api .DisplayNameGenerator ;
@@ -103,11 +101,6 @@ void setUp() {
103101 client = new OpenSearchRestClient (restClient );
104102 }
105103
106- @ BeforeAll
107- static void setUpJSON () {
108- setDefaultMediaType (XContentType .JSON );
109- }
110-
111104 @ Test
112105 void is_index_exist () throws IOException {
113106 when (restClient .indices ()
You can’t perform that action at this time.
0 commit comments