org.apache.commons.finder
Class FileFinderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.finder.FileFinderTest
All Implemented Interfaces:
junit.framework.Test

public class FileFinderTest
extends junit.framework.TestCase


Constructor Summary
FileFinderTest(java.lang.String name)
           
 
Method Summary
 void setUp()
           
 void testCanReadFalse()
           
 void testCanReadTrue()
           
 void testCanWriteFalse()
           
 void testCanWriteTrue()
           
 void testFindEmpty()
           
 void testFindIName()
           
 void testFindIPath()
           
 void testFindIRegex()
           
 void testFindName()
           
 void testFindNotPath()
           
 void testFindPath()
           
 void testFindRegex()
           
 void testFindSize()
          N.B.
 void testFindTypeD()
           
 void testFindTypeFile()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileFinderTest

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

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

testFindName

public void testFindName()

testFindIName

public void testFindIName()

testFindPath

public void testFindPath()

testFindIPath

public void testFindIPath()

testFindNotPath

public void testFindNotPath()

testFindRegex

public void testFindRegex()

testFindIRegex

public void testFindIRegex()

testFindEmpty

public void testFindEmpty()

testFindSize

public void testFindSize()
N.B. dir size on vmbuild is 4k which caused this test to fail in that environment (incl. nightly build) - so excluding directories. TODO - currently just one 4k file - need non-4k files for proper test


testFindTypeFile

public void testFindTypeFile()

testFindTypeD

public void testFindTypeD()

testCanWriteTrue

public void testCanWriteTrue()

testCanReadTrue

public void testCanReadTrue()

testCanWriteFalse

public void testCanWriteFalse()

testCanReadFalse

public void testCanReadFalse()


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