bb.io
Class FileRollingWriter.UnitTest

java.lang.Object
  extended by bb.io.FileRollingWriter.UnitTest
Enclosing class:
FileRollingWriter

public static class FileRollingWriter.UnitTest
extends Object

See the Overview page of the project's javadocs for a general description of this unit test class.


Constructor Summary
FileRollingWriter.UnitTest()
           
 
Method Summary
 void test_all()
           
private  void writeRolling(int n, File dir)
          Constructs a new FileRollingWriter instance with FileRollingWriter.nCharsTillRollover equal to n.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileRollingWriter.UnitTest

public FileRollingWriter.UnitTest()
Method Detail

test_all

public void test_all()
              throws Exception
Throws:
Exception

writeRolling

private void writeRolling(int n,
                          File dir)
                   throws Exception
Constructs a new FileRollingWriter instance with FileRollingWriter.nCharsTillRollover equal to n. Then writes a String of length n to the FileRollingWriter n times. This should result in n new output fils being produced.

Throws:
Exception