@Test public void validateErMineralOccurrence() { AppSchemaValidator.validateResource("/test-data/er_MineralOccurrence.xml"); }
public static void validateResource(String name) { InputStream input = null; try { input = AppSchemaValidator.class.getResourceAsStream(name); validate(input); } finally { if (input != null) { try { input.close(); } catch (IOException e) { } } } }
AppSchemaValidator { public static void validateResource(String name) { InputStream input = null; try { input = AppSchemaValidator.class.getResourceAsStream(name); validate(input); } finally { if (input != null) { try { input.close(); } catch (IOException e) { } } } } }
AppSchemaValidator { public static void validateResource(String name) { InputStream input = null; try { input = AppSchemaValidator.class.getResourceAsStream(name); validate(input); } finally { if (input != null) { try { input.close(); } catch (IOException e) { } } } } private  AppSchemaValidator(); private  AppSchemaValidator(AppSchemaResolver resolver); }
AppSchemaValidator { public static void validateResource(String name) { InputStream input = null; try { input = AppSchemaValidator.class.getResourceAsStream(name); validate(input); } finally { if (input != null) { try { input.close(); } catch (IOException e) { } } } } private  AppSchemaValidator(); private  AppSchemaValidator(AppSchemaResolver resolver); List<String> getFailures(); boolean isFailOnWarning(); void setFailOnWarning(boolean failOnWarning); void parse(InputStream input); void checkForFailures(); static AppSchemaValidator buildValidator(); static AppSchemaValidator buildValidator(AppSchemaResolver resolver); static void validateResource(String name); static void validate(String xml); static void validate(InputStream input); }
AppSchemaValidator { public static void validateResource(String name) { InputStream input = null; try { input = AppSchemaValidator.class.getResourceAsStream(name); validate(input); } finally { if (input != null) { try { input.close(); } catch (IOException e) { } } } } private  AppSchemaValidator(); private  AppSchemaValidator(AppSchemaResolver resolver); List<String> getFailures(); boolean isFailOnWarning(); void setFailOnWarning(boolean failOnWarning); void parse(InputStream input); void checkForFailures(); static AppSchemaValidator buildValidator(); static AppSchemaValidator buildValidator(AppSchemaResolver resolver); static void validateResource(String name); static void validate(String xml); static void validate(InputStream input);  }