public class IOUtilsTestCase extends FileBasedTestCase
| Constructor and Description |
|---|
IOUtilsTestCase(String name) |
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 IOUtilsTestCase(String name)
public void setUp()
setUp in class junit.framework.TestCasepublic void tearDown()
tearDown in class junit.framework.TestCasepublic void testCloseQuietly_CloseableIOException()
public void testCloseQuietly_Selector()
public void testCloseQuietly_SelectorIOException()
public void testCloseQuietly_SelectorNull()
public void testCloseQuietly_SelectorTwice()
public void testCloseQuietly_ServerSocket() throws IOException
IOExceptionpublic void testCloseQuietly_ServerSocketIOException() throws IOException
IOExceptionpublic void testCloseQuietly_Socket()
public void testCloseQuietly_SocketIOException()
public void testConstants() throws Exception
Exceptionpublic void testContentEquals_InputStream_InputStream() throws Exception
Exceptionpublic void testContentEquals_Reader_Reader() throws Exception
Exceptionpublic void testContentEqualsIgnoreEOL() throws Exception
Exceptionpublic void testCopy_ByteArray_OutputStream() throws Exception
Exceptionpublic void testCopy_ByteArray_Writer() throws Exception
Exceptionpublic void testCopy_String_Writer() throws Exception
Exceptionpublic void testCopyLarge_CharExtraLength() throws IOException
IOExceptionpublic void testCopyLarge_CharFullLength() throws IOException
IOExceptionpublic void testCopyLarge_CharNoSkip() throws IOException
IOExceptionpublic void testCopyLarge_CharSkip() throws IOException
IOExceptionpublic void testCopyLarge_CharSkipInvalid() throws IOException
IOExceptionpublic void testCopyLarge_ExtraLength() throws IOException
IOExceptionpublic void testCopyLarge_FullLength() throws IOException
IOExceptionpublic void testCopyLarge_NoSkip() throws IOException
IOExceptionpublic void testCopyLarge_Skip() throws IOException
IOExceptionpublic void testCopyLarge_SkipInvalid() throws IOException
IOExceptionpublic void testRead_ReadableByteChannel() throws Exception
Exceptionpublic void testReadFully_InputStream_ByteArray() throws Exception
Exceptionpublic void testReadFully_InputStream_Offset() throws Exception
Exceptionpublic void testReadFully_ReadableByteChannel() throws Exception
Exceptionpublic void testReadFully_Reader() throws Exception
Exceptionpublic void testReadFully_Reader_Offset() throws Exception
Exceptionpublic void testReadLines_InputStream() throws Exception
Exceptionpublic void testReadLines_InputStream_String() throws Exception
Exceptionpublic void testReadLines_Reader() throws Exception
Exceptionpublic void testSkip_FileReader() throws Exception
Exceptionpublic void testSkip_InputStream() throws Exception
Exceptionpublic void testSkip_ReadableByteChannel() throws Exception
Exceptionpublic void testSkipFully_InputStream() throws Exception
Exceptionpublic void testSkipFully_ReadableByteChannel() throws Exception
Exceptionpublic void testSkipFully_Reader() throws Exception
Exceptionpublic void testStringToOutputStream() throws Exception
Exceptionpublic void testToBufferedInputStream_InputStream() throws Exception
Exceptionpublic void testToByteArray_InputStream() throws Exception
Exceptionpublic void testToByteArray_InputStream_NegativeSize() throws Exception
Exceptionpublic void testToByteArray_InputStream_Size() throws Exception
Exceptionpublic void testToByteArray_InputStream_SizeIllegal() throws Exception
Exceptionpublic void testToByteArray_InputStream_SizeLong() throws Exception
Exceptionpublic void testToByteArray_InputStream_SizeZero() throws Exception
Exceptionpublic void testToByteArray_Reader() throws IOException
IOExceptionpublic void testToByteArray_String() throws Exception
Exceptionpublic void testToByteArray_URI() throws Exception
Exceptionpublic void testToByteArray_URL() throws Exception
Exceptionpublic void testToByteArray_URLConnection() throws Exception
Exceptionpublic void testToCharArray_InputStream() throws Exception
Exceptionpublic void testToCharArray_InputStream_CharsetName() throws Exception
Exceptionpublic void testToCharArray_Reader() throws Exception
Exceptionpublic void testToInputStream_CharSequence() throws Exception
IOUtils.toInputStream(CharSequence) and IOUtils.toInputStream(CharSequence, String).
Note, this test utilizes on IOUtils.toByteArray(java.io.InputStream) and so relies on
testToByteArray_InputStream() to ensure this method functions correctly.Exception - on errorpublic void testToInputStream_String() throws Exception
IOUtils.toInputStream(String) and IOUtils.toInputStream(String, String). Note, this test
utilizes on IOUtils.toByteArray(java.io.InputStream) and so relies on
testToByteArray_InputStream() to ensure this method functions correctly.Exception - on errorpublic void testToString_ByteArray() throws Exception
Exceptionpublic void testToString_InputStream() throws Exception
Exceptionpublic void testToString_Reader() throws Exception
Exceptionpublic void testToString_URI() throws Exception
Exceptionpublic void testToString_URI_CharsetName() throws Exception
Exceptionpublic void testToString_URI_CharsetNameNull() throws Exception
Exceptionpublic void testToString_URL() throws Exception
Exceptionpublic void testToString_URL_CharsetName() throws Exception
Exceptionpublic void testToString_URL_CharsetNameNull() throws Exception
Exceptionpublic void testAsBufferedNull()
public void testAsBufferedInputStream()
public void testAsBufferedOutputStream()
public void testAsBufferedReader()
public void testAsBufferedWriter()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.