public class LineIteratorTestCase extends FileBasedTestCase
| Constructor and Description |
|---|
LineIteratorTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testCloseEarly()
Test closing the iterator before all the file has been processed.
|
void |
testConstructor()
Test constructor.
|
void |
testFilteringBufferedReader() |
void |
testFilteringFileReader() |
void |
testInvalidEncoding()
Test a file with an Invalid encoding.
|
void |
testMissingFile()
Test a missing File.
|
void |
testNextLineOnlyDefaultEncoding()
Test the iterator using only the nextLine() method.
|
void |
testNextLineOnlyNullEncoding()
Test the iterator using only the nextLine() method.
|
void |
testNextLineOnlyUtf8Encoding()
Test the iterator using only the nextLine() method.
|
void |
testNextOnly()
Test the iterator using only the next() method.
|
void |
testNextWithException()
Tests hasNext when it throws an exception.
|
void |
testOneLines()
Test a file with 1 line.
|
void |
testThreeLines()
Test a file with 3 lines.
|
void |
testTwoLines()
Test a file with 2 lines.
|
void |
testValidEncoding()
Test a file with a Valid encoding.
|
void |
testZeroLines()
Test a file with no lines.
|
assertEqualContent, assertEqualContent, checkFile, checkWrite, checkWrite, createFile, createLineBasedFile, deleteFile, generateTestData, generateTestData, getTestDirectory, newFileassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic LineIteratorTestCase(String name)
protected void setUp() throws Exception
setUp in class junit.framework.TestCaseExceptionTestCase.setUp()protected void tearDown() throws Exception
tearDown in class junit.framework.TestCaseExceptionTestCase.tearDown()public void testConstructor() throws Exception
Exceptionpublic void testZeroLines() throws Exception
Exceptionpublic void testOneLines() throws Exception
Exceptionpublic void testTwoLines() throws Exception
Exceptionpublic void testThreeLines() throws Exception
Exceptionpublic void testMissingFile() throws Exception
Exceptionpublic void testValidEncoding() throws Exception
Exceptionpublic void testInvalidEncoding() throws Exception
Exceptionpublic void testNextLineOnlyDefaultEncoding() throws Exception
Exceptionpublic void testNextLineOnlyNullEncoding() throws Exception
Exceptionpublic void testNextLineOnlyUtf8Encoding() throws Exception
Exceptionpublic void testNextOnly() throws Exception
Exceptionpublic void testNextWithException() throws Exception
Exceptionpublic void testCloseEarly() throws Exception
Exceptionpublic void testFilteringFileReader() throws Exception
Exceptionpublic void testFilteringBufferedReader() throws Exception
ExceptionCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.