Commit 78decaaa authored by R.W.Majeed's avatar R.W.Majeed

main method to test parsing of EAV XML documents

parent 0eafe77d
package de.sekmi.histream.io;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import org.junit.Assert;
import org.junit.Before;
......@@ -38,4 +40,18 @@ public class TestFileObservationSuppliers {
s.close();
p.close();
}
public static void main(String[] args) throws Exception{
TestFileObservationSuppliers test = new TestFileObservationSuppliers();
test.prepareObservationFactory();
GroupedXMLProvider p = new GroupedXMLProvider(null);
try( InputStream in = new FileInputStream(args[0]) ){
ObservationSupplier s = p.createSupplier(in, test.factory);
Assert.assertTrue( s.stream().count() > 0 );
s.close();
p.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