public class TestPackage extends TestObject
Modifier and Type | Field and Description |
---|---|
protected static Function<Location<?>,java.lang.String> |
CLASS_NAME_FUNCTION |
LOG, myListenersFile
myServerSocket, myTempFile, myWorkingDirsFile
Constructor and Description |
---|
TestPackage(JUnitConfiguration configuration,
ExecutionEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration() |
protected void |
collectClassesRecursively(TestClassFilter classFilter,
Condition<? super PsiClass> acceptClassCondition,
java.util.Set<Location<?>> classes) |
protected static void |
collectInnerClasses(PsiClass aClass,
Condition<? super PsiClass> acceptAsTest,
java.util.Set<Location<?>> classes) |
protected void |
collectPackagesToOpen(java.util.List<java.lang.String> options) |
protected boolean |
configureByModule(Module module) |
protected JavaParameters |
createJavaParameters() |
SearchForTestsTask |
createSearchingForTestsTask() |
protected boolean |
createTempFiles() |
protected boolean |
filterOutputByDirectoryForJunit5(java.util.Set<Location<?>> classNames) |
protected GlobalSearchScope |
filterScope(JUnitConfiguration.Data data) |
protected TestClassFilter |
getClassFilter(JUnitConfiguration.Data data) |
protected java.lang.String |
getFilters(java.util.Set<Location<?>> foundClasses,
java.lang.String packageName) |
RefactoringElementListener |
getListener(PsiElement element,
JUnitConfiguration configuration) |
protected PsiPackage |
getPackage(JUnitConfiguration.Data data) |
protected java.lang.String |
getPackageName(JUnitConfiguration.Data data) |
SourceScope |
getSourceScope() |
java.io.File |
getWorkingDirsFile() |
boolean |
isConfiguredByElement(JUnitConfiguration configuration,
PsiClass testClass,
PsiMethod testMethod,
PsiPackage testPackage,
PsiDirectory testDir) |
protected boolean |
requiresSmartMode() |
protected void |
searchTests(Module module,
TestClassFilter classFilter,
java.util.Set<Location<?>> classes) |
protected void |
searchTests5(Module module,
TestClassFilter classFilter,
java.util.Set<Location<?>> classes) |
java.lang.String |
suggestActionName() |
addClassesListToJavaParameters, addClassesListToJavaParameters, appendJUnit5LauncherClasses, appendRepeatMode, composeDirectoryFilter, configureRTClasspath, createJavaParameters4Tests, deleteTempFiles, fillForkModule, fromString, getConfiguration, getForkMode, getFrameworkId, getFrameworkName, getJUnit5RtFile, getModulesToCompile, getRunner, getScope, getScopeForJUnit, hasJUnit5EnginesAPI, isDumbAware, isIdBasedTestTree, passForkMode, passTempFile, retrievePsiElement, useModulePath
appendForkInfo, collectListeners, collectSubPackages, configureClasspath, createHandler, createRemoteConnection, createServerSocket, createTargetedCommandLine, createTempFiles, execute, findJavaModule, forkPerModule, getForkSocket, getJdk, getJigsawOptions, getNamedParams, isPollConnection, putDependenciesOnModulePath, setRemoteConnectionCreator, spansMultipleModules, writeClassesPerModule
ansiColoringEnabled, clear, createCommandLine, getJavaParameters, shouldAddJavaProgramRunnerActions, startProcess
addConsoleFilters, createActions, createActions, createConsole, getConsoleBuilder, getEnvironment, getExecutionTarget, getRunnerSettings, setConsoleBuilder
public TestPackage(JUnitConfiguration configuration, ExecutionEnvironment environment)
public SourceScope getSourceScope()
getSourceScope
in class TestObject
public SearchForTestsTask createSearchingForTestsTask() throws ExecutionException
createSearchingForTestsTask
in class JavaTestFrameworkRunnableState<JUnitConfiguration>
ExecutionException
protected boolean requiresSmartMode()
protected boolean filterOutputByDirectoryForJunit5(java.util.Set<Location<?>> classNames)
protected java.lang.String getFilters(java.util.Set<Location<?>> foundClasses, java.lang.String packageName)
protected void searchTests5(Module module, TestClassFilter classFilter, java.util.Set<Location<?>> classes) throws CantRunException
CantRunException
protected void searchTests(Module module, TestClassFilter classFilter, java.util.Set<Location<?>> classes) throws CantRunException
CantRunException
protected boolean createTempFiles()
protected java.lang.String getPackageName(JUnitConfiguration.Data data) throws CantRunException
CantRunException
protected void collectClassesRecursively(TestClassFilter classFilter, Condition<? super PsiClass> acceptClassCondition, java.util.Set<Location<?>> classes) throws CantRunException
CantRunException
protected static void collectInnerClasses(PsiClass aClass, Condition<? super PsiClass> acceptAsTest, java.util.Set<Location<?>> classes)
protected JavaParameters createJavaParameters() throws ExecutionException
createJavaParameters
in class TestObject
ExecutionException
protected void collectPackagesToOpen(java.util.List<java.lang.String> options)
collectPackagesToOpen
in class JavaTestFrameworkRunnableState<JUnitConfiguration>
protected boolean configureByModule(Module module)
configureByModule
in class JavaTestFrameworkRunnableState<JUnitConfiguration>
protected TestClassFilter getClassFilter(JUnitConfiguration.Data data) throws CantRunException
CantRunException
protected GlobalSearchScope filterScope(JUnitConfiguration.Data data) throws CantRunException
CantRunException
protected PsiPackage getPackage(JUnitConfiguration.Data data) throws CantRunException
CantRunException
public java.lang.String suggestActionName()
suggestActionName
in class TestObject
public RefactoringElementListener getListener(PsiElement element, JUnitConfiguration configuration)
getListener
in class TestObject
public boolean isConfiguredByElement(JUnitConfiguration configuration, PsiClass testClass, PsiMethod testMethod, PsiPackage testPackage, PsiDirectory testDir)
isConfiguredByElement
in class TestObject
public void checkConfiguration() throws RuntimeConfigurationException
checkConfiguration
in class TestObject
RuntimeConfigurationException
public java.io.File getWorkingDirsFile()