tst/com/amazon/kinesis/streaming/agent/tailing/AbstractParserTest.java [469:482]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        P parser = buildParser();
        parser = spy(parser);
        TrackedFile file = new TrackedFile(flow, testFile);
        file.open(0);
        assertTrue(parser.switchParsingToFile(file));
        List<R> records = parseAllRecords(parser, null);
        assertEquals(records.size(), expectedRecordCount);
        assertTrue(records.size() > 0);  // SANITYCHECK: Ensure we didn't shoot blanks
        assertRegexParsedRecordsMatchInputFiles(records, pattern, testFile);
        // Make sure no data was discarded
        verify(parser, never()).onDiscardedData(anyInt(), anyInt(), anyString());
    }

    @Test
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tst/com/amazon/kinesis/streaming/agent/tailing/AbstractParserTest.java [493:506]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        P parser = buildParser();
        parser = spy(parser);
        TrackedFile file = new TrackedFile(flow, testFile);
        file.open(0);
        assertTrue(parser.switchParsingToFile(file));
        List<R> records = parseAllRecords(parser, null);
        assertEquals(records.size(), expectedRecordCount);
        assertTrue(records.size() > 0);  // SANITYCHECK: Ensure we didn't shoot blanks
        assertRegexParsedRecordsMatchInputFiles(records, pattern, testFile);
        // Make sure no data was discarded
        verify(parser, never()).onDiscardedData(anyInt(), anyInt(), anyString());
    }
    
    @Test
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



