org.apache.commons.io.input
Class NullInputStreamTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.io.input.NullInputStreamTest
All Implemented Interfaces:
junit.framework.Test

public class NullInputStreamTest
extends junit.framework.TestCase

JUnit Test Case for NullInputStream.

Version:
$Id: NullInputStreamTest.java 463529 2006-10-13 00:37:09Z niallp $

Constructor Summary
NullInputStreamTest(java.lang.String name)
          Constructor
 
Method Summary
protected  void setUp()
          Set up
protected  void tearDown()
          Tear Down
 void testEOFException()
          Test when configured to throw an EOFException at the end of file (rather than return -1).
 void testMarkAndReset()
          Test mark() and reset() methods.
 void testMarkNotSupported()
          Test mark() not supported.
 void testRead()
          Test available() method.
 void testReadByteArray()
          Test read(byte[]) method.
 void testSkip()
          Test skip() method.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullInputStreamTest

public NullInputStreamTest(java.lang.String name)
Constructor

Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Set up

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Tear Down

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testRead

public void testRead()
              throws java.lang.Exception
Test available() method.

Throws:
java.lang.Exception

testReadByteArray

public void testReadByteArray()
                       throws java.lang.Exception
Test read(byte[]) method.

Throws:
java.lang.Exception

testEOFException

public void testEOFException()
                      throws java.lang.Exception
Test when configured to throw an EOFException at the end of file (rather than return -1).

Throws:
java.lang.Exception

testMarkAndReset

public void testMarkAndReset()
                      throws java.lang.Exception
Test mark() and reset() methods.

Throws:
java.lang.Exception

testMarkNotSupported

public void testMarkNotSupported()
                          throws java.lang.Exception
Test mark() not supported.

Throws:
java.lang.Exception

testSkip

public void testSkip()
              throws java.lang.Exception
Test skip() method.

Throws:
java.lang.Exception


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.