Commit 14ba3890 authored by R.W.Majeed's avatar R.W.Majeed

second test ontology

parent c7cfa2a0
......@@ -20,7 +20,25 @@ public class TestOntologyMojo {
mojo.source = new FileSet();
mojo.source.setDirectory(source.getParent());
mojo.source.addInclude(source.getName());
mojo.destination = new File("target/");
mojo.destination = new File("target/i2b2-aktin");
mojo.properties = new Properties();
mojo.overwrite = true;
try( InputStream in = getClass().getResourceAsStream("/ontology.properties") ){
mojo.properties.load(in);
}
mojo.execute();
}
@Test
public void writeComplexOntology() throws Exception{
URL ttl = getClass().getResource("/test-ontology.ttl");
File source = new File(ttl.toURI());
Assert.assertTrue(source.isFile());
OntologyMojo mojo = new OntologyMojo();
mojo.source = new FileSet();
mojo.source.setDirectory(source.getParent());
mojo.source.addInclude(source.getName());
mojo.destination = new File("target/i2b2-test");
mojo.properties = new Properties();
mojo.overwrite = true;
try( InputStream in = getClass().getResourceAsStream("/ontology.properties") ){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment