org.jcoderz.commons.util
Class IoUtilTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jcoderz.commons.util.IoUtilTest
All Implemented Interfaces:
Test

public class IoUtilTest
extends TestCase

Unit Tests for the class IoUtil.

Author:
Michael Griffel

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

IoUtilTest

public IoUtilTest()
Method Detail

testReadFully

public void testReadFully()
                   throws IOException
Tests the method IoUtil.readFully(InputStream, int).

Throws:
IOException - in case of an unexpected I/O error.

testSafeCloseInputStream

public void testSafeCloseInputStream()
Tests the method IoUtil.close(InputStream).


testSafeCloseOutputStream

public void testSafeCloseOutputStream()
Tests the method IoUtil.close(OutputStream).


testSafeCloseReader

public void testSafeCloseReader()
Tests the method IoUtil.close(Reader).


testSafeCloseWriter

public void testSafeCloseWriter()
Tests the method IoUtil.close(Writer).


testSafeCloseRandomAccessFile

public void testSafeCloseRandomAccessFile()
                                   throws Exception
Tests the method IoUtil.close(RandomAccessFile).

Throws:
Exception - in case of an unexpected error.

testSafeCloseChannel

public void testSafeCloseChannel()
                          throws Exception
Tests the method IoUtil.close(Channel).

Throws:
Exception - in case of an unexpected error.

testSkip

public void testSkip()
              throws Exception
Throws:
Exception


Copyright 2007 The jCoderZ Project.