@Test public void testUpdateMultipleSchemaValidator() throws InvalidParseOperationException, IOException, ValidationException { DslValidator dslValidator = new UpdateMultipleSchemaValidator(); JsonNode updateQuery = JsonHandler.getFromFile(PropertiesUtils.findFile("update_multiple_complete.json")); dslValidator.validate(updateQuery); }
public UpdateMultipleSchemaValidator() throws IOException { LOGGER.debug("Loading schema {} from {}", DslSchema.MASS_UPDATE.name(), DslSchema.MASS_UPDATE.getFilename()); try (final InputStream schemaSource = PropertiesUtils.getResourceAsStream(DslSchema.MASS_UPDATE.getFilename())) { schema = Schema.getSchema().loadTypes(schemaSource).build(); } }
UpdateMultipleSchemaValidator implements DslValidator { public UpdateMultipleSchemaValidator() throws IOException { LOGGER.debug("Loading schema {} from {}", DslSchema.MASS_UPDATE.name(), DslSchema.MASS_UPDATE.getFilename()); try (final InputStream schemaSource = PropertiesUtils.getResourceAsStream(DslSchema.MASS_UPDATE.getFilename())) { schema = Schema.getSchema().loadTypes(schemaSource).build(); } } }
UpdateMultipleSchemaValidator implements DslValidator { public UpdateMultipleSchemaValidator() throws IOException { LOGGER.debug("Loading schema {} from {}", DslSchema.MASS_UPDATE.name(), DslSchema.MASS_UPDATE.getFilename()); try (final InputStream schemaSource = PropertiesUtils.getResourceAsStream(DslSchema.MASS_UPDATE.getFilename())) { schema = Schema.getSchema().loadTypes(schemaSource).build(); } } UpdateMultipleSchemaValidator(); }
UpdateMultipleSchemaValidator implements DslValidator { public UpdateMultipleSchemaValidator() throws IOException { LOGGER.debug("Loading schema {} from {}", DslSchema.MASS_UPDATE.name(), DslSchema.MASS_UPDATE.getFilename()); try (final InputStream schemaSource = PropertiesUtils.getResourceAsStream(DslSchema.MASS_UPDATE.getFilename())) { schema = Schema.getSchema().loadTypes(schemaSource).build(); } } UpdateMultipleSchemaValidator(); @Override void validate(JsonNode dsl); }
UpdateMultipleSchemaValidator implements DslValidator { public UpdateMultipleSchemaValidator() throws IOException { LOGGER.debug("Loading schema {} from {}", DslSchema.MASS_UPDATE.name(), DslSchema.MASS_UPDATE.getFilename()); try (final InputStream schemaSource = PropertiesUtils.getResourceAsStream(DslSchema.MASS_UPDATE.getFilename())) { schema = Schema.getSchema().loadTypes(schemaSource).build(); } } UpdateMultipleSchemaValidator(); @Override void validate(JsonNode dsl);  }