@Test public void should_retrieve_errors_when_validate_null() throws IOException, InvalidParseOperationException { final Schema schema = loadSchema(PropertiesUtils.getResourceFile("dsl.json")); try { Validator.validate(schema, "DSL", null); fail(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (ValidationException e) { e.printStackTrace(); fail(); } }
public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); }
Validator { public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); } }
Validator { public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); }  }
Validator { public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); }  static void validate(Schema schema, String root, JsonNode document); }
Validator { public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); }  static void validate(Schema schema, String root, JsonNode document);  }