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; }
@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); }