コード例 #1
0
  @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);
  }
コード例 #2
0
 @After
 public void teardown() {
   testUtils.removeTestFiles();
 }
コード例 #3
0
 @Before
 public void setup() throws Exception {
   testUtils = TestUtils.getInstance();
   testUtils.createTestFiles();
 }