@Test public void testUpdateMultipleSchemaValidatorWithSingleQueryException() throws InvalidParseOperationException, IOException, ValidationException { DslValidator dslValidator = new SelectMultipleSchemaValidator(); JsonNode updateQuery = JsonHandler.getFromFile(PropertiesUtils.findFile("update_multiple_with_single_query.json")); assertThatThrownBy(() -> dslValidator.validate(updateQuery)) .hasMessageContaining("Dsl query is not valid"); }
@Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); }
UpdateMultipleSchemaValidator implements DslValidator { @Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); } }
UpdateMultipleSchemaValidator implements DslValidator { @Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); } UpdateMultipleSchemaValidator(); }
UpdateMultipleSchemaValidator implements DslValidator { @Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); } UpdateMultipleSchemaValidator(); @Override void validate(JsonNode dsl); }
UpdateMultipleSchemaValidator implements DslValidator { @Override public void validate(JsonNode dsl) throws ValidationException { Validator.validate(schema, "DSL", dsl); } UpdateMultipleSchemaValidator(); @Override void validate(JsonNode dsl);  }