Commit e3089ce0 authored by R.W.Majeed's avatar R.W.Majeed

Example files moved to src/main/examples, assembly will include these files

parent ca1201f0
......@@ -18,7 +18,7 @@ public class OntologyTest {
@Before
public void setupOntology()throws Exception{
store = new Store(new File("src/test/resources/test-ontology.n3"));
store = new Store(new File("src/main/examples/test-ontology.n3"));
}
@Test
......
......@@ -14,6 +14,7 @@
<!-- Now, select which projects to include in this module-set. -->
<includes>
<include>de.sekmi.histream:histream-core</include>
<include>de.sekmi.histream:histream-i2b2</include>
<include>de.sekmi.histream:histream-hl7</include>
<include>de.sekmi.histream:histream-skos</include>
......@@ -22,6 +23,15 @@
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
</binaries>
<sources>
<includeModuleDirectory>false</includeModuleDirectory>
<fileSets>
<fileSet>
<outputDirectory>examples</outputDirectory>
<directory>src/main/examples</directory>
</fileSet>
</fileSets>
</sources>
</moduleSet>
</moduleSets>
......
......@@ -33,7 +33,7 @@ public class TestLoadConfig {
@Test
public void loadNewConfig(){
Configuration config = Configuration.fromFile(new File("src/test/resources/histream.xml"));
Configuration config = Configuration.fromFile(new File("src/main/examples/histream.xml"));
Assert.assertNotNull(config);
Assert.assertEquals(5, config.getPlugins().length);
Assert.assertEquals(1, config.getDestinations().length);
......
......@@ -146,14 +146,14 @@ public class FileObservationProviderTest {
@Test
public void testStAXReader() throws Exception {
ObservationSupplier xos = new XMLObservationSupplier(factory, new FileInputStream("src/test/resources/dwh-eav.xml"));
ObservationSupplier xos = new XMLObservationSupplier(factory, new FileInputStream("src/main/examples/dwh-eav.xml"));
StreamSupport.stream(AbstractObservationParser.nonNullSpliterator(xos), false).forEach(handler);
handler.finish();
}
@Test
public void testFlatReader() throws Exception {
ObservationSupplier s = new FlatObservationSupplier(factory, new FileInputStream("src/test/resources/dwh-flat.txt"));
ObservationSupplier s = new FlatObservationSupplier(factory, new FileInputStream("src/main/examples/dwh-flat.txt"));
StreamSupport.stream(AbstractObservationParser.nonNullSpliterator(s), false).forEach(handler);
handler.finish();
}
......
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