|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jcoderz.commons.util.IoUtilTest
public class IoUtilTest
Unit Tests for the class IoUtil.
| Constructor Summary | |
|---|---|
IoUtilTest()
|
|
| Method Summary | |
|---|---|
void |
testReadFully()
Tests the method IoUtil.readFully(InputStream, int). |
void |
testSafeCloseChannel()
Tests the method IoUtil.close(Channel). |
void |
testSafeCloseInputStream()
Tests the method IoUtil.close(InputStream). |
void |
testSafeCloseOutputStream()
Tests the method IoUtil.close(OutputStream). |
void |
testSafeCloseRandomAccessFile()
Tests the method IoUtil.close(RandomAccessFile). |
void |
testSafeCloseReader()
Tests the method IoUtil.close(Reader). |
void |
testSafeCloseWriter()
Tests the method IoUtil.close(Writer). |
void |
testSkip()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, 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, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IoUtilTest()
| Method Detail |
|---|
public void testReadFully()
throws IOException
IoUtil.readFully(InputStream, int).
IOException - in case of an unexpected I/O error.public void testSafeCloseInputStream()
IoUtil.close(InputStream).
public void testSafeCloseOutputStream()
IoUtil.close(OutputStream).
public void testSafeCloseReader()
IoUtil.close(Reader).
public void testSafeCloseWriter()
IoUtil.close(Writer).
public void testSafeCloseRandomAccessFile()
throws Exception
IoUtil.close(RandomAccessFile).
Exception - in case of an unexpected error.
public void testSafeCloseChannel()
throws Exception
IoUtil.close(Channel).
Exception - in case of an unexpected error.
public void testSkip()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||