Skip to content
Snippets Groups Projects
Commit 78decaaa authored by R.W.Majeed's avatar R.W.Majeed
Browse files

main method to test parsing of EAV XML documents

parent 0eafe77d
No related branches found
No related tags found
No related merge requests found
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();
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment