public abstract class AbstractJavaTestConfigurationProducer<T extends JavaTestConfigurationBase> extends JavaRunConfigurationProducerBase<T>
EP_NAME
Modifier | Constructor and Description |
---|---|
protected |
AbstractJavaTestConfigurationProducer() |
protected |
AbstractJavaTestConfigurationProducer(ConfigurationType configurationType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PsiPackage |
checkPackage(PsiElement element) |
protected boolean |
collectContextElements(DataContext dataContext,
boolean checkAbstract,
boolean checkIsTest,
java.util.LinkedHashSet<? super java.lang.String> classes,
PsiElementProcessor.CollectElements<PsiElement> processor) |
protected PsiElement[] |
collectLocationElements(java.util.LinkedHashSet<? super java.lang.String> classes,
DataContext dataContext) |
void |
collectTestMembers(PsiElement[] psiElements,
boolean checkAbstract,
boolean checkIsTest,
PsiElementProcessor.CollectElements<PsiElement> collectingProcessor) |
protected boolean |
differentParamSet(T configuration,
Location contextLocation) |
Module |
findModule(ModuleBasedConfiguration configuration,
Module contextModule,
java.util.Set<java.lang.String> patterns) |
protected JavaTestFramework |
getCurrentFramework(PsiClass psiClass) |
protected java.lang.String |
getMethodPresentation(PsiMember psiMember) |
java.lang.String |
getQName(PsiElement psiMember) |
java.lang.String |
getQName(PsiElement psiMember,
Location location) |
protected boolean |
isApplicableTestType(java.lang.String type,
ConfigurationContext context) |
boolean |
isConfigurationFromContext(T configuration,
ConfigurationContext context)
Checks if the specified configuration was created from the specified context.
|
boolean |
isMultipleElementsSelected(ConfigurationContext context) |
protected boolean |
isRequiredVisibility(PsiMember psiElement) |
protected boolean |
isTestClass(PsiClass psiClass) |
protected boolean |
isTestMethod(boolean checkAbstract,
PsiMethod method) |
void |
setupConfigurationParamName(T configuration,
Location contextLocation) |
createConfigurationFromContext, findModule, setupConfigurationModule, setupPackageConfiguration
cloneTemplateConfiguration, cloneTemplateConfigurationStatic, createLightConfiguration, findExistingConfiguration, findOrCreateConfigurationFromContext, getConfigurationFactory, getConfigurationSettingsList, getConfigurationType, getInstance, getProducers, isPreferredConfiguration, onFirstRun, setupConfigurationFromContext, shouldReplace
@Deprecated protected AbstractJavaTestConfigurationProducer(ConfigurationType configurationType)
RunConfigurationProducer.getConfigurationFactory()
.protected AbstractJavaTestConfigurationProducer()
protected boolean isTestClass(PsiClass psiClass)
protected boolean isTestMethod(boolean checkAbstract, PsiMethod method)
protected JavaTestFramework getCurrentFramework(PsiClass psiClass)
protected boolean isApplicableTestType(java.lang.String type, ConfigurationContext context)
public boolean isConfigurationFromContext(T configuration, ConfigurationContext context)
RunConfigurationProducer
isConfigurationFromContext
in class RunConfigurationProducer<T extends JavaTestConfigurationBase>
configuration
- a configuration instance.context
- contains the information about a location in the source code.public Module findModule(ModuleBasedConfiguration configuration, Module contextModule, java.util.Set<java.lang.String> patterns)
public void collectTestMembers(PsiElement[] psiElements, boolean checkAbstract, boolean checkIsTest, PsiElementProcessor.CollectElements<PsiElement> collectingProcessor)
protected boolean isRequiredVisibility(PsiMember psiElement)
protected boolean collectContextElements(DataContext dataContext, boolean checkAbstract, boolean checkIsTest, java.util.LinkedHashSet<? super java.lang.String> classes, PsiElementProcessor.CollectElements<PsiElement> processor)
protected PsiElement[] collectLocationElements(java.util.LinkedHashSet<? super java.lang.String> classes, DataContext dataContext)
public java.lang.String getQName(PsiElement psiMember)
public java.lang.String getQName(PsiElement psiMember, Location location)
protected java.lang.String getMethodPresentation(PsiMember psiMember)
public boolean isMultipleElementsSelected(ConfigurationContext context)
public void setupConfigurationParamName(T configuration, Location contextLocation)
public static PsiPackage checkPackage(PsiElement element)