qat.parser
Class GenericTestFinder

java.lang.Object
  extended byqat.parser.GenericTestFinder
All Implemented Interfaces:
TestFinderInterface

public class GenericTestFinder
extends java.lang.Object
implements TestFinderInterface

This class is responsible for mapping registered test finders to their corresponding * parsers.


Constructor Summary
GenericTestFinder(java.util.Properties properties)
          Creates a tesfinder and registers a list of testfinder classes
 
Method Summary
 ParserInterface getParser(java.io.File file)
          Return a parser for the specified file type, or null if it's not one we recognise.
 boolean isTestFile(java.io.File file)
          Return true if this file is a QASH file.
 void setProjectRoot(java.lang.String rootDirectory)
          This method should be called by the class instanciating this TestFinder, to indicate the root path to the current file offset, as set in the project setings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTestFinder

public GenericTestFinder(java.util.Properties properties)
Creates a tesfinder and registers a list of testfinder classes. * The test finders are discovered from the property Common.DEFAULT_TESTFINDER_CLASSNAMES.

Method Detail

setProjectRoot

public void setProjectRoot(java.lang.String rootDirectory)
Description copied from interface: TestFinderInterface
This method should be called by the class instanciating this TestFinder, to indicate the root path to the current file offset, as set in the project setings.

Specified by:
setProjectRoot in interface TestFinderInterface

isTestFile

public boolean isTestFile(java.io.File file)
Return true if this file is a QASH file.

Specified by:
isTestFile in interface TestFinderInterface

getParser

public ParserInterface getParser(java.io.File file)
Description copied from interface: TestFinderInterface
Return a parser for the specified file type, or null if it's not one we recognise.

Specified by:
getParser in interface TestFinderInterface


See QAT project for licensing details