Skip to content

Commit 066d04d

Browse files
committed
remove warning
1 parent b8695a3 commit 066d04d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/java/fr/pilato/test/elasticsearch/hlclient/EsClientIT.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)