junit.com.mcdermottroe.exemplar.utils
Class FilesTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by junit.com.mcdermottroe.exemplar.ExemplarTestCase<T>
              extended by junit.com.mcdermottroe.exemplar.UtilityClassTestCase<Files>
                  extended by junit.com.mcdermottroe.exemplar.utils.FilesTest
All Implemented Interfaces:
junit.framework.Test

public class FilesTest
extends UtilityClassTestCase<Files>

Test class for Files.

Since:
0.2

Field Summary
private  File testDirectory
          A root directory for this test.
 
Fields inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
DELIBERATE_PASS, testedClass, TMP
 
Constructor Summary
FilesTest()
           
 
Method Summary
private  void createTestTree()
          Create a test tree of files and directories.
private  void removeTestTree()
          Remove the test tree created by createTestTree().
 void setUp()
          Set up the JUnit test.
 void testFindDirectories()
          Test Files.findDirectories(File).
 void testFindFiles()
          Test Files.findFiles(File).
 void testRemoveTree()
          Test Files.removeTree(File).
 
Methods inherited from class junit.com.mcdermottroe.exemplar.UtilityClassTestCase
testAllFieldsStatic, testAllMethodsStatic, testOnePrivateConstructor
 
Methods inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
getTestedClass, testAllMethodsBeingTested, testCorrectPackage
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testDirectory

private File testDirectory
A root directory for this test.

Constructor Detail

FilesTest

public FilesTest()
Method Detail

setUp

public void setUp()
           throws Exception
Set up the JUnit test.

Overrides:
setUp in class ExemplarTestCase<Files>
Throws:
Exception - if TestCase.setUp() throws one.
See Also:
ExemplarTestCase.testedClass, TestCase.setUp()

testFindDirectories

public void testFindDirectories()
Test Files.findDirectories(File).


testFindFiles

public void testFindFiles()
Test Files.findFiles(File).


testRemoveTree

public void testRemoveTree()
Test Files.removeTree(File).


createTestTree

private void createTestTree()
Create a test tree of files and directories.


removeTestTree

private void removeTestTree()
Remove the test tree created by createTestTree().