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

second test ontology

parent c7cfa2a0
Loading
Loading
Loading
Loading
+19 −1
Original line number Original line Diff line number Diff line
@@ -20,7 +20,25 @@ public class TestOntologyMojo {
		mojo.source = new FileSet();
		mojo.source = new FileSet();
		mojo.source.setDirectory(source.getParent());
		mojo.source.setDirectory(source.getParent());
		mojo.source.addInclude(source.getName());
		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.properties = new Properties();
		mojo.overwrite = true;
		mojo.overwrite = true;
		try( InputStream in = getClass().getResourceAsStream("/ontology.properties") ){
		try( InputStream in = getClass().getResourceAsStream("/ontology.properties") ){