@Test public void should_retrieve_exception_when_projection_is_in_query() throws Exception { DslValidator dslValidator = new BatchProcessingQuerySchemaValidator(); JsonNode selectOnlyQueryMultiple = JsonHandler .getFromFile(PropertiesUtils.findFile("elimination-query-invalid-with-projection.json")); assertThatThrownBy(() -> dslValidator.validate(selectOnlyQueryMultiple)) .hasNoCause() .hasMessageContaining("INVALID_JSON_FIELD: $facets") .hasMessageContaining("INVALID_JSON_FIELD: $projection"); }
@Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); }
BatchProcessingQuerySchemaValidator implements DslValidator { @Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); } }
BatchProcessingQuerySchemaValidator implements DslValidator { @Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); } BatchProcessingQuerySchemaValidator(); }
BatchProcessingQuerySchemaValidator implements DslValidator { @Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); } BatchProcessingQuerySchemaValidator(); @Override void validate(JsonNode dsl); }
BatchProcessingQuerySchemaValidator implements DslValidator { @Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); } BatchProcessingQuerySchemaValidator(); @Override void validate(JsonNode dsl);  }