public class PatternConfigurationProducer extends AbstractPatternBasedConfigurationProducer<JUnitConfiguration>
EP_NAME
Constructor and Description |
---|
PatternConfigurationProducer() |
Modifier and Type | Method and Description |
---|---|
protected Module |
findModule(JUnitConfiguration configuration,
Module contextModule) |
protected java.lang.String |
getMethodPresentation(PsiMember psiMember) |
protected boolean |
isApplicableTestType(java.lang.String type,
ConfigurationContext context) |
boolean |
isConfigurationFromContext(JUnitConfiguration unitConfiguration,
ConfigurationContext context)
Checks if the specified configuration was created from the specified context.
|
protected boolean |
isRequiredVisibility(PsiMember psiElement) |
protected boolean |
setupConfigurationFromContext(JUnitConfiguration configuration,
ConfigurationContext context,
Ref<PsiElement> sourceElement)
Sets up a configuration based on the specified context.
|
checkPatterns, isConfiguredFromContext
checkPackage, collectContextElements, collectLocationElements, collectTestMembers, differentParamSet, findModule, getCurrentFramework, getQName, getQName, isMultipleElementsSelected, isTestClass, isTestMethod, setupConfigurationParamName
createConfigurationFromContext, setupConfigurationModule, setupPackageConfiguration
cloneTemplateConfiguration, cloneTemplateConfigurationStatic, createLightConfiguration, findExistingConfiguration, findOrCreateConfigurationFromContext, getConfigurationFactory, getConfigurationSettingsList, getConfigurationType, getInstance, getProducers, isPreferredConfiguration, onFirstRun, shouldReplace
protected java.lang.String getMethodPresentation(PsiMember psiMember)
getMethodPresentation
in class AbstractJavaTestConfigurationProducer<JUnitConfiguration>
protected boolean setupConfigurationFromContext(JUnitConfiguration configuration, ConfigurationContext context, Ref<PsiElement> sourceElement)
RunConfigurationProducer
setupConfigurationFromContext
in class RunConfigurationProducer<JUnitConfiguration>
configuration
- a clone of the template run configuration of the specified typecontext
- contains the information about a location in the source code.sourceElement
- a reference to the source element for the run configuration (by default contains the element at caret,
can be updated by the producer to point to a higher-level element in the tree).protected boolean isApplicableTestType(java.lang.String type, ConfigurationContext context)
isApplicableTestType
in class AbstractJavaTestConfigurationProducer<JUnitConfiguration>
protected Module findModule(JUnitConfiguration configuration, Module contextModule)
findModule
in class JavaRunConfigurationProducerBase<JUnitConfiguration>
public boolean isConfigurationFromContext(JUnitConfiguration unitConfiguration, ConfigurationContext context)
RunConfigurationProducer
isConfigurationFromContext
in class AbstractJavaTestConfigurationProducer<JUnitConfiguration>
unitConfiguration
- a configuration instance.context
- contains the information about a location in the source code.protected boolean isRequiredVisibility(PsiMember psiElement)
isRequiredVisibility
in class AbstractJavaTestConfigurationProducer<JUnitConfiguration>