File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/test/java/fr/pilato/test/elasticsearch/hlclient Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -981,12 +981,8 @@ void esql() throws IOException, SQLException {
981981 final ObjectMapper mapper = new ObjectMapper ();
982982 final JsonNode jsonNode = mapper .readTree (is );
983983 assertThat (jsonNode ).isNotNull ().hasSize (4 );
984- assertThat (jsonNode .get ("columns" )).isNotNull ().hasSize (1 ).first ().satisfies (column -> {
985- assertThat (column .get ("name" ).asText ()).isEqualTo ("name" );
986- });
987- assertThat (jsonNode .get ("values" )).isNotNull ().hasSize (1 ).first ().satisfies (value -> {
988- assertThat (value ).hasSize (1 ).first ().satisfies (singleValue -> assertThat (singleValue .asText ()).isEqualTo ("David" ));
989- });
984+ assertThat (jsonNode .get ("columns" )).isNotNull ().hasSize (1 ).first ().satisfies (column -> assertThat (column .get ("name" ).asText ()).isEqualTo ("name" ));
985+ assertThat (jsonNode .get ("values" )).isNotNull ().hasSize (1 ).first ().satisfies (value -> assertThat (value ).hasSize (1 ).first ().satisfies (singleValue -> assertThat (singleValue .asText ()).isEqualTo ("David" )));
990986 assertThat (jsonNode .get ("took" ).asInt ()).isGreaterThan (0 );
991987 assertThat (jsonNode .get ("is_partial" ).asBoolean ()).isFalse ();
992988 }
You can’t perform that action at this time.
0 commit comments