Commit a5d926ca authored by rwm's avatar rwm

test histream-import with other local sources

parent 6b09d5fa
package de.sekmi.histream.etl;
import java.net.URL;
import java.nio.file.Paths;
import org.junit.Test;
import de.sekmi.histream.impl.Meta;
import de.sekmi.histream.io.GroupedXMLWriter;
import de.sekmi.histream.io.Streams;
public class OtherSources {
@Test
public void testSource1() throws Exception{
URL url = Paths.get("../../../2015-06 DZL/Datenquellen/Biobanken/Marburg (Cosyconet)/datasource.xml").toUri().toURL();
ETLObservationSupplier os = ETLObservationSupplier.load(url);
GroupedXMLWriter w = new GroupedXMLWriter(System.out);
Meta.transfer(os, w);
Streams.transfer(os, w);
os.close();
w.close();
}
@Test
public void testSource2() throws Exception{
URL url = Paths.get("../../../2015-06 DZL/Datenquellen/Biobanken/Gauting/datasource.xml").toUri().toURL();
ETLObservationSupplier os = ETLObservationSupplier.load(url);
GroupedXMLWriter w = new GroupedXMLWriter(System.out);
Meta.transfer(os, w);
Streams.transfer(os, w);
os.close();
w.close();
}
}
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