qat.parser.junitparser
Class JUnitTestFinder

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

public class JUnitTestFinder
extends java.lang.Object
implements TestFinderInterface


Constructor Summary
JUnitTestFinder()
           
 
Method Summary
static java.lang.String convertPathToClassName(java.lang.String pathToFile, java.lang.String rootDirectory)
           
 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 JUnit 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

JUnitTestFinder

public JUnitTestFinder()
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 JUnit file.

Specified by:
isTestFile in interface TestFinderInterface

convertPathToClassName

public static java.lang.String convertPathToClassName(java.lang.String pathToFile,
                                                      java.lang.String rootDirectory)

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.

Specified by:
getParser in interface TestFinderInterface


See QAT project for licensing details