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