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

test data moved to sub directory in histream-import resources

parent 5d0a6f76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ public class TestETLSupplier {
	
	@Before
	public void loadConfiguration() throws IOException, ParseException{
		os = ETLObservationSupplier.load(getClass().getResource("/test-1-datasource.xml"));
		os = ETLObservationSupplier.load(getClass().getResource("/data/test-1-datasource.xml"));
	}

	@After
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ public class TestRowSupplier {
	
	@Test
	public void testLoadRows() throws IOException{
		try( FileRowSupplier r = new FileRowSupplier(getClass().getResource("/test-1-patients.txt"), "\t") ){
		try( FileRowSupplier r = new FileRowSupplier(getClass().getResource("/data/test-1-patients.txt"), "\t") ){
			String[] h = r.getHeaders();
			Assert.assertEquals("patid", h[0]);
			Assert.assertEquals("nachname", h[2]);
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ public class TestMarshall {

	@Test
	public void testUnmarshall() throws IOException{
		try( InputStream in = getClass().getResourceAsStream("/test-1-datasource.xml") ){
		try( InputStream in = getClass().getResourceAsStream("/data/test-1-datasource.xml") ){
			DataSource ds = JAXB.unmarshal(in, DataSource.class);
			Assert.assertNotNull(ds.meta);
			Assert.assertEquals("replace-source",ds.meta.etlStrategy);
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ public class TestReadTables {
	
	@Before
	public void loadConfiguration() throws IOException{
		URL url = getClass().getResource("/test-1-datasource.xml");
		URL url = getClass().getResource("/data/test-1-datasource.xml");
		ds = JAXB.unmarshal(url, DataSource.class);
		ds.getMeta().setLocation(url);
		of = new ObservationFactoryImpl();
Loading