public abstract class TestFrameworks
extends java.lang.Object
Constructor and Description |
---|
TestFrameworks() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<TestFramework> |
detectApplicableFrameworks(PsiClass psiClass) |
static TestFramework |
detectFramework(PsiClass psiClass) |
abstract PsiMethod |
findOrCreateSetUpMethod(PsiClass psiClass) |
abstract PsiMethod |
findSetUpMethod(PsiClass psiClass) |
abstract PsiMethod |
findTearDownMethod(PsiClass psiClass) |
static TestFrameworks |
getInstance() |
protected abstract boolean |
hasConfigMethods(PsiClass psiClass) |
abstract boolean |
isPotentialTestClass(PsiClass psiClass) |
abstract boolean |
isTestClass(PsiClass psiClass) |
abstract boolean |
isTestMethod(PsiMethod method) |
boolean |
isTestMethod(PsiMethod method,
boolean checkAbstract)
Checks method on the possibility to run as a test
|
boolean |
isTestOrConfig(PsiClass psiClass) |
public static TestFrameworks getInstance()
public abstract boolean isTestClass(PsiClass psiClass)
public abstract boolean isPotentialTestClass(PsiClass psiClass)
protected abstract boolean hasConfigMethods(PsiClass psiClass)
public abstract boolean isTestMethod(PsiMethod method)
public boolean isTestMethod(PsiMethod method, boolean checkAbstract)
method
- method element to checkcheckAbstract
- the fact that an abstract class is a test or not, if false then is testpublic boolean isTestOrConfig(PsiClass psiClass)
public static TestFramework detectFramework(PsiClass psiClass)
public static java.util.Set<TestFramework> detectApplicableFrameworks(PsiClass psiClass)