org.archive.io
Class RecordingOutputStreamTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.archive.util.TmpDirTestCase
              extended byorg.archive.io.RecordingOutputStreamTest
All Implemented Interfaces:
junit.framework.Test

public class RecordingOutputStreamTest
extends TmpDirTestCase

Test casesfor RecordingOutputStream.

Author:
stack

Constructor Summary
RecordingOutputStreamTest()
           
 
Method Summary
protected  void setUp()
           
 void testMarkReset()
          Test mark and reset.
 void testReuse()
          Test reusing instance of RecordingOutputStream.
 void testWritebytearray()
          Method to test for void write(byte []).
 void testWriteint()
          Method to test for void write(int).
 
Methods inherited from class org.archive.util.TmpDirTestCase
cleanUpOldFiles, cleanUpOldFiles, getTmpDir, tearDown
 
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

RecordingOutputStreamTest

public RecordingOutputStreamTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class TmpDirTestCase
Throws:
java.lang.Exception

testReuse

public void testReuse()
               throws java.io.IOException
Test reusing instance of RecordingOutputStream.

Throws:
java.io.IOException - Failed open of backing file or opening of input streams verifying recording.

testWriteint

public void testWriteint()
                  throws java.io.IOException
Method to test for void write(int). Uses small buffer size and small write size. Test mark and reset too.

Throws:
java.io.IOException - Failed open of backing file or opening of input streams verifying recording.

testWritebytearray

public void testWritebytearray()
                        throws java.io.IOException
Method to test for void write(byte []). Uses small buffer size and small write size.

Throws:
java.io.IOException - Failed open of backing file or opening of input streams verifying recording.

testMarkReset

public void testMarkReset()
                   throws java.io.IOException
Test mark and reset.

Throws:
java.io.IOException


Copyright © 2003-2005 Internet Archive. All Rights Reserved.