@Test public void testVbRecordReader() throws IOException, InterruptedException { RecordReader reader = getRecordReader( testUtils.getCobolFileLocation(), testUtils.getTestVbFileLocation(), "0x01", net.sf.JRecord.Common.Constants.IO_VB); int counter = 0; while (reader.nextKeyValue()) { counter++; System.out.println(reader.getCurrentKey() + "::\t" + reader.getCurrentValue()); } assertEquals(testUtils.getTestDataLength(), counter); }
@After public void teardown() { testUtils.removeTestFiles(); }
@Before public void setup() throws Exception { testUtils = TestUtils.getInstance(); testUtils.createTestFiles(); }