org.apache.commons.io.input
Class CountingInputStreamTest

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

public class CountingInputStreamTest
extends junit.framework.TestCase

Tests the CountingInputStream.

Version:
$Id: CountingInputStreamTest.java 606381 2007-12-22 02:03:16Z ggregory $
Author:
Marcelo Liberato, Stephen Colebourne

Constructor Summary
CountingInputStreamTest(java.lang.String name)
           
 
Method Summary
 void testCounting()
           
 void testEOF1()
           
 void testEOF2()
           
 void testEOF3()
           
 void testLargeFiles_IO84()
          Test for files > 2GB in size - see issue IO-84
 void testResetting()
           
 void testSkipping()
           
 void testZeroLength1()
           
 void testZeroLength2()
           
 void testZeroLength3()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountingInputStreamTest

public CountingInputStreamTest(java.lang.String name)
Method Detail

testCounting

public void testCounting()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testLargeFiles_IO84

public void testLargeFiles_IO84()
                         throws java.lang.Exception
Test for files > 2GB in size - see issue IO-84

Throws:
java.lang.Exception

testResetting

public void testResetting()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testZeroLength1

public void testZeroLength1()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testZeroLength2

public void testZeroLength2()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testZeroLength3

public void testZeroLength3()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testEOF1

public void testEOF1()
              throws java.lang.Exception
Throws:
java.lang.Exception

testEOF2

public void testEOF2()
              throws java.lang.Exception
Throws:
java.lang.Exception

testEOF3

public void testEOF3()
              throws java.lang.Exception
Throws:
java.lang.Exception

testSkipping

public void testSkipping()
                  throws java.io.IOException
Throws:
java.io.IOException


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