Ensure Reversed reader has read all the lines
MODIFY
src/test/java/org/apache/commons/io/input/ReversedLinesFileReaderTestParamFile.java
src/test/java/org/apache/commons/io/input/ReversedLinesFileReaderTestParamFile.java
@@ -92,6 +92,7 @@ public void testDataIntegrityWithBufferedReader(final String fileName, final Str
final String lineFromBufferedReader = lineStack.pop();
assertEquals(lineFromBufferedReader, line);
}
+ assertEquals(0, lineStack.size(), "Stack should be empty");
if (fileSystem != null) {
fileSystem.close();

Ensure Reversed reader has read all the lines