Esempio n. 1
0
  /** Test that our sample XML file validates */
  public void testValidate() {

    File f = new File("src/test/resources/xml/AGU_test_abstract.xml");
    Schema schema = xml.load(xml.aguSchema);
    boolean isValid = xml.validate(schema, f.getAbsolutePath());
    assertTrue(isValid);
  }
Esempio n. 2
0
  /** Test that the AGU schema is available */
  public void testSchema() {

    Schema schema = xml.load(xml.aguSchema);
    assertNotNull(schema);
  }