public abstract class AbstractTestFrameworkDetector<T extends TestClassVisitor> extends Object implements TestFrameworkDetector
| Modifier and Type | Field and Description |
|---|---|
protected static String |
GROOVY_TEST_CASE |
protected static String |
TEST_CASE |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTestFrameworkDetector(File testClassesDirectory,
FileCollection testClasspath,
ClassFileExtractionManager classFileExtractionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addKnownTestCaseClassNames(String... knownTestCaseClassNames) |
protected TestClassVisitor |
classVisitor(File testClassFile) |
protected abstract T |
createClassVisitor() |
protected File |
getSuperTestClassFile(String superClassName) |
protected boolean |
isKnownTestCaseClassName(String testCaseClassName) |
protected boolean |
processSuperClass(File testClassFile) |
boolean |
processTestClass(File testClassFile) |
protected abstract boolean |
processTestClass(File testClassFile,
boolean superClass) |
protected void |
publishTestClass(boolean isTest,
TestClassVisitor classVisitor,
boolean superClass)
In none super class mode a test class is published when the class is a test and it is not abstract.
|
void |
startDetection(TestClassProcessor testClassProcessor) |
protected static final String TEST_CASE
protected static final String GROOVY_TEST_CASE
protected AbstractTestFrameworkDetector(File testClassesDirectory, FileCollection testClasspath, ClassFileExtractionManager classFileExtractionManager)
protected abstract T createClassVisitor()
protected TestClassVisitor classVisitor(File testClassFile)
public boolean processTestClass(File testClassFile)
processTestClass in interface TestFrameworkDetectorprotected abstract boolean processTestClass(File testClassFile, boolean superClass)
protected boolean processSuperClass(File testClassFile)
protected void publishTestClass(boolean isTest,
TestClassVisitor classVisitor,
boolean superClass)
public void startDetection(TestClassProcessor testClassProcessor)
startDetection in interface TestFrameworkDetectorpublic void addKnownTestCaseClassNames(String... knownTestCaseClassNames)
protected boolean isKnownTestCaseClassName(String testCaseClassName)
Copyright © 2013. All rights reserved