use of es.bsc.compss.types.project.ProjectFile in project compss by bsc-wdc.
the class ProjectFileTest method rocciXML.
@Test
public void rocciXML() throws URISyntaxException, JAXBException, SAXException, ProjectFileValidationException, IOException {
// Get XSD Schema path
String xsd_path = new File(SCHEMA_PATH).toURI().getPath();
// Get default resources file
File rocciProject = new File(ROCCI_XML_PATH);
// Instantiate ResourcesFile
ProjectFile project = new ProjectFile(rocciProject, xsd_path, logger);
// Checkers
assertNotNull(project);
File xml = new File(XML_TMP_PATH);
project.toFile(xml);
boolean compareFile = FileUtils.contentEquals(rocciProject, xml);
assertEquals("Dump content not equal", true, compareFile);
}
use of es.bsc.compss.types.project.ProjectFile in project compss by bsc-wdc.
the class ProjectFileTest method gridXML.
@Test
public void gridXML() throws URISyntaxException, JAXBException, SAXException, ProjectFileValidationException, IOException {
// Get XSD Schema path
String xsd_path = new File(SCHEMA_PATH).toURI().getPath();
// Get default resources file
File gridProject = new File(GRID_XML_PATH);
// Instantiate ResourcesFile
ProjectFile project = new ProjectFile(gridProject, xsd_path, logger);
// Checkers
assertNotNull(project);
File xml = new File(XML_TMP_PATH);
project.toFile(xml);
boolean compareFile = FileUtils.contentEquals(gridProject, xml);
assertEquals("Dump content not equal", true, compareFile);
}
Aggregations