public class TestOV2Reader extends Tester {
@Test
public void run() throws Exception {
super.run();
Reader reader = new OV2Reader(new File("src/assets/test.ov2"));
String name = "";
String lat = "";
String lng = "";
reader.open();
String[] record = (String[])reader.read();
if(record != null){
name = record[0];
lat = record[1];
lng = record[2];
}
while(name != null && lat != null && lng != null){
if(record != null)logger.info(name+" "+lat+" "+lng);
//Assert.assertTrue(value.contains("this is the "));
record = (String[])reader.read();
if(record != null){
name = record[0];
lat = record[1];
lng = record[2];
}
if(reader.isEndOfFile())break;
}
}