public class UniqueIdConfigurationProducer extends JUnitConfigurationProducer
EP_NAME
Constructor and Description |
---|
UniqueIdConfigurationProducer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getNodeIds(ConfigurationContext context) |
protected boolean |
isApplicableTestType(java.lang.String type,
ConfigurationContext context) |
protected boolean |
setupConfigurationFromContext(JUnitConfiguration configuration,
ConfigurationContext context,
Ref<PsiElement> sourceElement)
Sets up a configuration based on the specified context.
|
boolean |
shouldReplace(ConfigurationFromContext self,
ConfigurationFromContext other)
When two configurations are created from the same context by two different producers, checks if the configuration created by
this producer should replace the other one, that is if the other one should be discarded.
|
getConfigurationFactory
checkPackage, collectContextElements, collectLocationElements, collectTestMembers, differentParamSet, findModule, getCurrentFramework, getMethodPresentation, getQName, getQName, isConfigurationFromContext, isMultipleElementsSelected, isRequiredVisibility, isTestClass, isTestMethod, setupConfigurationParamName
createConfigurationFromContext, findModule, setupConfigurationModule, setupPackageConfiguration
cloneTemplateConfiguration, cloneTemplateConfigurationStatic, createLightConfiguration, findExistingConfiguration, findOrCreateConfigurationFromContext, getConfigurationSettingsList, getConfigurationType, getInstance, getProducers, isPreferredConfiguration, onFirstRun
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).public static java.lang.String[] getNodeIds(ConfigurationContext context)
protected boolean isApplicableTestType(java.lang.String type, ConfigurationContext context)
isApplicableTestType
in class AbstractJavaTestConfigurationProducer<JUnitConfiguration>
public boolean shouldReplace(ConfigurationFromContext self, ConfigurationFromContext other)
RunConfigurationProducer
This is the same relationship as RunConfigurationProducer.isPreferredConfiguration(ConfigurationFromContext, ConfigurationFromContext)
but
specified from the "replacement" side.
shouldReplace
in class RunConfigurationProducer<JUnitConfiguration>
self
- a configuration created by this producer.other
- a configuration created by another producer.RunConfigurationProducer.isPreferredConfiguration(ConfigurationFromContext, ConfigurationFromContext)