| |
|
| org.apache.commons.io.testtools.FileBasedTestCase org.apache.commons.io.IOUtilsTestCase
IOUtilsTestCase | public class IOUtilsTestCase extends FileBasedTestCase (Code) | | This is used to test IOUtils for correctness. The following checks are performed:
- The return must not be null, must be the same type and equals() to the method's second arg
- All bytes must have been read from the source (available() == 0)
- The source and destination content must be identical (byte-wise comparison check)
- The output stream must not have been closed (a byte/char is written to test this, and
subsequent size checked)
Due to interdependencies in IOUtils and IOUtilsTestlet, one bug may cause
multiple tests to fail.
author: Jeff Turner author: Gareth Davis author: Ian Springer |
setUp | public void setUp()(Code) | | |
tearDown | public void tearDown()(Code) | | |
testByteArrayToOutputStream | public void testByteArrayToOutputStream() throws Exception(Code) | | |
testByteArrayToString | public void testByteArrayToString() throws Exception(Code) | | |
testByteArrayToWriter | public void testByteArrayToWriter() throws Exception(Code) | | |
testInputStreamToByteArray | public void testInputStreamToByteArray() throws Exception(Code) | | |
testInputStreamToCharArray | public void testInputStreamToCharArray() throws Exception(Code) | | |
testInputStreamToCharArrayWithEncoding | public void testInputStreamToCharArrayWithEncoding() throws Exception(Code) | | |
testInputStreamToString | public void testInputStreamToString() throws Exception(Code) | | |
testReadLines_InputStream | public void testReadLines_InputStream() throws Exception(Code) | | |
testReadLines_InputStream_String | public void testReadLines_InputStream_String() throws Exception(Code) | | |
testReadLines_Reader | public void testReadLines_Reader() throws Exception(Code) | | |
testReaderToCharArray | public void testReaderToCharArray() throws Exception(Code) | | |
testStringToByteArray | public void testStringToByteArray() throws Exception(Code) | | |
testStringToOutputStream | public void testStringToOutputStream() throws Exception(Code) | | |
|
|
|