Exemplo n.º 1
0
  private List<MetaModule> loadFile(String name) throws IOException {
    String content = XMLPreprocessor.loadFile(new File("test/xmldataset/" + name), null);
    assertNotNull(content);
    assertFalse(content.length() == 0);

    /////////

    List<MetaModule> modules = XMLDataParser.parseModules(content);
    return modules;
  }
Exemplo n.º 2
0
  @Test
  public void testDataParser() throws Exception {
    File f = new File("test/xmldataset/datadef.xml");
    String content = XMLPreprocessor.loadFile(f, null);

    assertNotNull(content);
    assertFalse(content.length() == 0);

    /////////

    List<MetaModule> modules = XMLDataParser.parseModules(content);
    performBasicChecks(modules);
  }