public class TestFrameworksImpl extends TestFrameworks
Modifier and Type | Method and Description |
---|---|
PsiMethod |
findOrCreateSetUpMethod(PsiClass psiClass) |
PsiMethod |
findSetUpMethod(PsiClass psiClass) |
PsiMethod |
findTearDownMethod(PsiClass psiClass) |
protected boolean |
hasConfigMethods(PsiClass psiClass) |
boolean |
isPotentialTestClass(PsiClass psiClass) |
boolean |
isTestClass(PsiClass psiClass) |
boolean |
isTestMethod(PsiMethod method) |
boolean |
isTestMethod(PsiMethod method,
boolean checkAbstract)
Checks method on the possibility to run as a test
|
detectApplicableFrameworks, detectFramework, getInstance, isTestOrConfig
public boolean isTestClass(PsiClass psiClass)
isTestClass
in class TestFrameworks
public boolean isPotentialTestClass(PsiClass psiClass)
isPotentialTestClass
in class TestFrameworks
public PsiMethod findOrCreateSetUpMethod(PsiClass psiClass)
findOrCreateSetUpMethod
in class TestFrameworks
public PsiMethod findSetUpMethod(PsiClass psiClass)
findSetUpMethod
in class TestFrameworks
public PsiMethod findTearDownMethod(PsiClass psiClass)
findTearDownMethod
in class TestFrameworks
protected boolean hasConfigMethods(PsiClass psiClass)
hasConfigMethods
in class TestFrameworks
public boolean isTestMethod(PsiMethod method)
isTestMethod
in class TestFrameworks
public boolean isTestMethod(PsiMethod method, boolean checkAbstract)
TestFrameworks
isTestMethod
in class TestFrameworks
method
- method element to checkcheckAbstract
- the fact that an abstract class is a test or not, if false then is test