コード例 #1
0
 @Test
 public void testHasNextRecordForEmptyFile() throws Exception {
   flatFileRecordReader.close();
   flatFileRecordReader = new FlatFileRecordReader(emptyDataSource);
   flatFileRecordReader.open();
   assertThat(flatFileRecordReader.hasNextRecord()).isFalse();
 }
コード例 #2
0
 @Test
 public void testHasNextRecord() throws Exception {
   assertThat(flatFileRecordReader.hasNextRecord()).isTrue();
 }