qat.parser
Interface TestFinderInterface

All Known Implementing Classes:
GenericTestFinder, JUnitTestFinder, QASHTestFinder, QAXMLTestFinder

public interface TestFinderInterface


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)
          This method is called to determine whether the corresponding file is a test file or not.
 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.
 

Method Detail

isTestFile

public boolean isTestFile(java.io.File file)
This method is called to determine whether the corresponding file is a test file or not. If it is, it will be added into the test tree as a test node, and the ParserInterface class will be called on it to determine keywords, name etc.


setProjectRoot

public 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.


getParser

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



See QAT project for licensing details