ccl.util.test
Class FileUtilTest

java.lang.Object
  |
  +--ccl.util.Test
        |
        +--ccl.util.test.FileUtilTest
All Implemented Interfaces:
java.lang.Runnable

public class FileUtilTest
extends Test

Tests for ccl.util.FileUtil.


Constructor Summary
FileUtilTest()
          Default test constructor.
FileUtilTest(Test pTest_)
          Standard test constructor.
 
Method Summary
protected  void _doIt()
          Inherit this method to do your test inside of it.
static void main(java.lang.String[] args)
           
 void testCopyWithOffset()
          Checks if method 'copy' with an offset works.
 void testReadFile()
          Checks that method 'readFile' throws a file not found exception containing in its message the file name which could not be found.
 void testWriteTempFile()
          Tests method 'writeTempFile'.
 
Methods inherited from class ccl.util.Test
_enterSubTest, _exitSubTest, _getValue, _increment, _setTests, _showLiveSignals, assert, Assert, assert, Assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertTrue, assertTrue, assertTrue, bug, bugIf, bugIf, bugIf, fail, fail, getBugs, getComment, getGlobalTests, getLocalTests, getName, getTestClassDirectory, getTestDirectory, getTestName, getTestName, getValue, initialize, isTest, isTiming, isVerbose, printResult, printResult, redirectStandardStreams, run, setBug, setParentTest, setTests, setTiming, setValue, setVerbose, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileUtilTest

public FileUtilTest()
Default test constructor.


FileUtilTest

public FileUtilTest(Test pTest_)
Standard test constructor.

Method Detail

testReadFile

public void testReadFile()
                  throws java.io.IOException
Checks that method 'readFile' throws a file not found exception containing in its message the file name which could not be found.

java.io.IOException

testCopyWithOffset

public void testCopyWithOffset()
                        throws java.lang.Exception
Checks if method 'copy' with an offset works.

java.lang.Exception

testWriteTempFile

public void testWriteTempFile()
                       throws java.lang.Exception
Tests method 'writeTempFile'.

java.lang.Exception

_doIt

protected void _doIt()
              throws java.lang.Exception
Description copied from class: Test
Inherit this method to do your test inside of it.

Specified by:
_doIt in class Test
Throws:
java.lang.Exception - Whatever can go wrong.

main

public static void main(java.lang.String[] args)