public final class TestInClassConfigurationProducer extends JUnitConfigurationProducer
EP_NAME
Constructor and Description |
---|
TestInClassConfigurationProducer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isApplicableTestType(java.lang.String type,
ConfigurationContext context) |
boolean |
isConfigurationFromContext(JUnitConfiguration configuration,
ConfigurationContext context)
Checks if the specified configuration was created from the specified context.
|
void |
onFirstRun(ConfigurationFromContext configuration,
ConfigurationContext fromContext,
java.lang.Runnable performRunnable)
Called before a configuration created from context by this producer is first executed.
|
protected boolean |
setupConfigurationFromContext(JUnitConfiguration configuration,
ConfigurationContext context,
Ref<PsiElement> sourceElement)
Sets up a configuration based on the specified context.
|
getConfigurationFactory
checkPackage, collectContextElements, collectLocationElements, collectTestMembers, differentParamSet, findModule, getCurrentFramework, getMethodPresentation, getQName, getQName, isMultipleElementsSelected, isRequiredVisibility, isTestClass, isTestMethod, setupConfigurationParamName
createConfigurationFromContext, findModule, setupConfigurationModule, setupPackageConfiguration
cloneTemplateConfiguration, cloneTemplateConfigurationStatic, createLightConfiguration, findExistingConfiguration, findOrCreateConfigurationFromContext, getConfigurationSettingsList, getConfigurationType, getInstance, getProducers, isPreferredConfiguration, shouldReplace
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 void onFirstRun(ConfigurationFromContext configuration, ConfigurationContext fromContext, java.lang.Runnable performRunnable)
RunConfigurationProducer
onFirstRun
in class RunConfigurationProducer<JUnitConfiguration>
configuration
- a configuration created by this producer.fromContext
- the contextperformRunnable
- the runnable that needs to be called after additional customization is complete.public boolean isConfigurationFromContext(JUnitConfiguration configuration, ConfigurationContext context)
RunConfigurationProducer
isConfigurationFromContext
in class AbstractJavaTestConfigurationProducer<JUnitConfiguration>
configuration
- a configuration instance.context
- contains the information about a location in the source code.protected boolean isApplicableTestType(java.lang.String type, ConfigurationContext context)
isApplicableTestType
in class AbstractJavaTestConfigurationProducer<JUnitConfiguration>