use of com.revinate.assertj.json.JsonPathAssert in project graylog2-server by Graylog2.
the class BooleanNumberConditionsVisitorTest method assertJsonPath.
private void assertJsonPath(Expression<Boolean> expression, Consumer<JsonPathAssert> consumer) throws Exception {
final DocumentContext context = JsonPath.parse(objectMapper.writeValueAsString(expression));
final JsonPathAssert jsonPathAssert = JsonPathAssert.assertThat(context);
consumer.accept(jsonPathAssert);
}
Aggregations