public abstract class JavaTestFramework extends java.lang.Object implements TestFramework
EXTENSION_NAME
Constructor and Description |
---|
JavaTestFramework() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAfterClassMethodFileTemplateDescriptor, getBeforeClassMethodFileTemplateDescriptor, getDefaultSuperClass, getIcon, getName, getSetUpMethodFileTemplateDescriptor, getTearDownMethodFileTemplateDescriptor, getTestMethodFileTemplateDescriptor, isTestMethod
public boolean isLibraryAttached(Module module)
isLibraryAttached
in interface TestFramework
public java.lang.String getLibraryPath()
getLibraryPath
in interface TestFramework
public ExternalLibraryDescriptor getFrameworkLibraryDescriptor()
protected abstract java.lang.String getMarkerClassFQName()
public boolean isTestClass(PsiElement clazz)
isTestClass
in interface TestFramework
public boolean isPotentialTestClass(PsiElement clazz)
isPotentialTestClass
in interface TestFramework
protected abstract boolean isTestClass(PsiClass clazz, boolean canBePotential)
protected boolean isUnderTestSources(PsiClass clazz)
public PsiElement findSetUpMethod(PsiElement clazz)
findSetUpMethod
in interface TestFramework
public PsiElement findTearDownMethod(PsiElement clazz)
findTearDownMethod
in interface TestFramework
public PsiElement findBeforeClassMethod(PsiElement clazz)
findBeforeClassMethod
in interface TestFramework
public PsiElement findAfterClassMethod(PsiElement clazz)
findAfterClassMethod
in interface TestFramework
public PsiElement findOrCreateSetUpMethod(PsiElement clazz) throws IncorrectOperationException
findOrCreateSetUpMethod
in interface TestFramework
IncorrectOperationException
public boolean isIgnoredMethod(PsiElement element)
TestFramework
isIgnoredMethod
in interface TestFramework
public Language getLanguage()
getLanguage
in interface TestFramework
protected abstract PsiMethod findOrCreateSetUpMethod(PsiClass clazz) throws IncorrectOperationException
IncorrectOperationException
public boolean isParameterized(PsiClass clazz)
public FileTemplateDescriptor getParametersMethodFileTemplateDescriptor()
public abstract char getMnemonic()
public PsiMethod createSetUpPatternMethod(JVMElementFactory factory)
public FileTemplateDescriptor getTestClassFileTemplateDescriptor()
public boolean isSingleConfig()
public boolean isSuiteClass(PsiClass psiClass)
public boolean acceptNestedClasses()
public boolean isTestMethod(PsiElement element)
TestFramework
isTestMethod
in interface TestFramework
public boolean isMyConfigurationType(ConfigurationType type)