コード例 #1
0
  @Test
  public void testReadSingleFileWithMultiline() throws Exception {

    String[] header = {"header", "_raw"};
    String content = FileContentProvider.getMultilineRandomContent(header, 5, 2);
    int[] offsets = new int[] {0, 12, 82, 152, 222, 292};

    runTestOnContent(content, offsets);
  }
コード例 #2
0
  @Test
  public void testReadSingleFileNoMultiline() throws Exception {

    String[] header = {"header", "_raw"};
    String content = FileContentProvider.getRandomContent(header, 5);
    int[] offsets = new int[] {0, 12, 38, 64, 90, 116};

    runTestOnContent(content, offsets);
  }