avignon
Class TestSuiteLister

java.lang.Object
  extended byavignon.TestSuiteLister
All Implemented Interfaces:
java.io.FileFilter

public class TestSuiteLister
extends java.lang.Object
implements java.io.FileFilter

Encapsulates the logic for determining what files represent Avignon tests.


Constructor Summary
TestSuiteLister()
           
 
Method Summary
 boolean accept(java.io.File f)
          Determines whether or not the given file represents an Avignon Test.
 java.io.File[] getTestFiles()
          Determines the files in the directory specified by the ScriptRoot property that represent Avignon tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSuiteLister

public TestSuiteLister()
Method Detail

getTestFiles

public java.io.File[] getTestFiles()
Determines the files in the directory specified by the ScriptRoot property that represent Avignon tests.

Returns:
Files representing Avignon tests.

accept

public boolean accept(java.io.File f)
Determines whether or not the given file represents an Avignon Test. To be a test, the File must represent an actual file (not a directory) and the name must end in "TestSuite.xml"

Specified by:
accept in interface java.io.FileFilter
Parameters:
f - File to test
Returns:
Boolean indicating whether or not the file is a test.

SourceForge.net Logo