public abstract class JavaTestConfigurationBase extends ModuleBasedConfiguration<JavaRunConfigurationModule,Element> implements CommonJavaRunConfigurationParameters, ConfigurationWithCommandLineShortener, RefactoringListenerProvider, SMRunnerConsolePropertiesProvider, TargetEnvironmentAwareRunProfile
RunConfiguration.RestartSingletonResult
TO_CLONE_ELEMENT_NAME
DATA_KEY
Constructor and Description |
---|
JavaTestConfigurationBase(JavaRunConfigurationModule configurationModule,
ConfigurationFactory factory) |
JavaTestConfigurationBase(java.lang.String name,
JavaRunConfigurationModule configurationModule,
ConfigurationFactory factory) |
Modifier and Type | Method and Description |
---|---|
abstract void |
beClassConfiguration(PsiClass aClass) |
abstract void |
beMethodConfiguration(Location<PsiMethod> location) |
abstract void |
bePatternConfiguration(java.util.List<PsiClass> classes,
PsiMethod method) |
boolean |
canRunOn(TargetEnvironmentConfiguration target)
Checks if this configuration supports running on the provided target (see
ExecutionTarget for details). |
<any> |
getDefaultLanguageRuntimeType()
Returns language runtime type that should be configured for
TargetEnvironmentConfiguration if it's
created for this particular run configuration. |
java.lang.String |
getDefaultTargetName() |
ShortenCommandLine |
getShortenCommandLine() |
abstract JavaTestFrameworkRunnableState<? extends JavaTestConfigurationBase> |
getState(Executor executor,
ExecutionEnvironment environment)
Prepares for executing a specific instance of the run configuration.
|
abstract TestSearchScope |
getTestSearchScope() |
abstract java.lang.String |
getTestType() |
abstract boolean |
isConfiguredByElement(PsiElement element) |
boolean |
isUseModulePath() |
java.lang.String |
prepareParameterizedParameter(java.lang.String paramSetName) |
void |
readExternal(Element element) |
void |
setDefaultTargetName(java.lang.String targetName) |
abstract void |
setSearchScope(TestSearchScope searchScope) |
void |
setShortenCommandLine(ShortenCommandLine shortenCommandLine)
Called from UI, when user explicitly selects method to be used to shorten the command line or from the deserialization
|
void |
setUseModulePath(boolean useModulePath) |
void |
writeExternal(Element element) |
canRestoreOriginalModule, clone, createInstance, getAllModules, getConfigurationModule, getDefaultOptionsClass, getModules, getOptions, getState, getValidModules, isModuleDirMacroSupported, loadState, onNewConfigurationCreated, readModule, restoreOriginalModule, setModule, setModuleName, syncModuleName, writeModule
getActionName, isGeneratedName, setGeneratedName, setNameChangedByUser
addLogFile, addLogFile, addPredefinedLogFile, checkRunnerSettings, checkSettingsBeforeRun, collectOutputFromProcessHandler, createAdditionalTabComponents, customizeLogConsole, equals, excludeCompileBeforeLaunchOption, getAllLogFiles, getBeforeRunTasks, getFactory, getIcon, getLogFiles, getName, getOptionsClass, getOptionsForPredefinedLogFile, getOutputFilePath, getPredefinedLogFiles, getProject, hashCode, isAllowRunningInParallel, isNewSerializationUsed, isSaveOutputToFile, isShowConsoleOnStdErr, isShowConsoleOnStdOut, onConfigurationCopied, removeAllLogFiles, removeAllPredefinedLogFiles, setAllowRunningInParallel, setBeforeRunTasks, setFileOutputPath, setName, setOptionsFromConfigurationFile, setSaveOutputToFile, setShowConsoleOnStdErr, setShowConsoleOnStdOut, toString
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
getAlternativeJrePath, getPackage, getRunClass, getVMParameters, isAlternativeJrePathEnabled, setAlternativeJrePath, setAlternativeJrePathEnabled, setVMParameters
getEnvs, getProgramParameters, getProject, getWorkingDirectory, isPassParentEnvs, setEnvs, setPassParentEnvs, setProgramParameters, setWorkingDirectory
getProject
getRefactoringElementListener
createTestConsoleProperties
getIcon, getName
checkConfiguration, createRunnerSettings, getBeforeRunTasks, getConfigurationEditor, getFactory, getId, getPresentableType, getProject, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, isAllowRunningInParallel, restartSingleton, setAllowRunningInParallel, setBeforeRunTasks, setName
getSearchScope
isBuildBeforeLaunchAddedByDefault, isBuildProjectOnEmptyModuleList, isExcludeCompileBeforeLaunchOption
suggestedName
public JavaTestConfigurationBase(java.lang.String name, JavaRunConfigurationModule configurationModule, ConfigurationFactory factory)
public JavaTestConfigurationBase(JavaRunConfigurationModule configurationModule, ConfigurationFactory factory)
public abstract void bePatternConfiguration(java.util.List<PsiClass> classes, PsiMethod method)
public abstract void beClassConfiguration(PsiClass aClass)
public abstract boolean isConfiguredByElement(PsiElement element)
public abstract java.lang.String getTestType()
public java.lang.String prepareParameterizedParameter(java.lang.String paramSetName)
public abstract TestSearchScope getTestSearchScope()
public abstract void setSearchScope(TestSearchScope searchScope)
public abstract JavaTestFrameworkRunnableState<? extends JavaTestConfigurationBase> getState(Executor executor, ExecutionEnvironment environment) throws ExecutionException
RunProfile
getState
in interface RunProfile
executor
- the execution mode selected by the user (run, debug, profile etc.)environment
- the environment object containing additional settings for executing the configuration.ExecutionException
public ShortenCommandLine getShortenCommandLine()
getShortenCommandLine
in interface ConfigurationWithCommandLineShortener
public void setShortenCommandLine(ShortenCommandLine shortenCommandLine)
ConfigurationWithCommandLineShortener
setShortenCommandLine
in interface ConfigurationWithCommandLineShortener
public void readExternal(Element element) throws InvalidDataException
readExternal
in interface RunConfiguration
readExternal
in class ModuleBasedConfiguration<JavaRunConfigurationModule,Element>
InvalidDataException
public void writeExternal(Element element) throws WriteExternalException
writeExternal
in interface RunConfiguration
writeExternal
in class ModuleBasedConfiguration<JavaRunConfigurationModule,Element>
WriteExternalException
public boolean isUseModulePath()
public void setUseModulePath(boolean useModulePath)
public boolean canRunOn(TargetEnvironmentConfiguration target)
TargetAwareRunProfile
ExecutionTarget
for details).canRunOn
in interface TargetAwareRunProfile
canRunOn
in interface TargetEnvironmentAwareRunProfile
canRunOn
in class RunConfigurationBase<Element>
target
- target provided by ExecutionTargetProvider
public <any> getDefaultLanguageRuntimeType()
TargetEnvironmentAwareRunProfile
TargetEnvironmentConfiguration
if it's
created for this particular run configuration.
That language runtime type will be used while creating TargetEnvironmentConfiguration
using
wizard from RunOnTargetComboBox
getDefaultLanguageRuntimeType
in interface TargetEnvironmentAwareRunProfile
TargetEnvironmentType#createStepsForNewWizard
public java.lang.String getDefaultTargetName()
getDefaultTargetName
in interface TargetEnvironmentAwareRunProfile
TargetEnvironmentConfiguration#getDisplayName()
public void setDefaultTargetName(java.lang.String targetName)
setDefaultTargetName
in interface TargetEnvironmentAwareRunProfile