@Test public void testGetProgressZeroEstimatedRecords() throws IOException { inputSplit = new ShardedInputSplit(shardPath, 0); recordReader = createReader(); recordReader.initialize(inputSplit, mockTaskContext); assertEquals(0.0f, recordReader.getProgress(), 0.0f); }
@Test public void testGetCurrentBeforeFirstRecord() throws IOException { assertNull(recordReader.getCurrentKey()); assertNull(recordReader.getCurrentValue()); assertEquals(0.0f, recordReader.getProgress(), 0.0f); }