Class ForkConfiguration
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
-
- Direct Known Subclasses:
DefaultForkConfiguration
public abstract class ForkConfiguration extends java.lang.ObjectConfiguration for forking tests.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.StringDEFAULT_PROVIDER_CLASS
-
Constructor Summary
Constructors Constructor Description ForkConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract OutputStreamFlushableCommandlinecreateCommandLine(StartupConfiguration config, int forkNumber, java.io.File dumpLogDirectory)protected abstract java.lang.StringgetArgLine()protected abstract ClasspathgetBooterClasspath()protected abstract java.lang.StringgetDebugLine()protected abstract java.util.Map<java.lang.String,java.lang.String>getEnvironmentVariables()protected abstract java.lang.String[]getExcludedEnvironmentVariables()protected abstract intgetForkCount()protected abstract JdkAttributesgetJdkForTests()protected abstract java.util.PropertiesgetModelProperties()protected abstract PlatformgetPluginPlatform()abstract java.io.FilegetTempDirectory()protected abstract java.io.FilegetWorkingDirectory()protected abstract booleanisDebug()protected abstract booleanisReuseForks()
-
-
-
Method Detail
-
getTempDirectory
@Nonnull public abstract java.io.File getTempDirectory()
-
getDebugLine
@Nullable protected abstract java.lang.String getDebugLine()
-
getWorkingDirectory
@Nonnull protected abstract java.io.File getWorkingDirectory()
-
getModelProperties
@Nonnull protected abstract java.util.Properties getModelProperties()
-
getArgLine
@Nullable protected abstract java.lang.String getArgLine()
-
getEnvironmentVariables
@Nonnull protected abstract java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
-
getExcludedEnvironmentVariables
@Nonnull protected abstract java.lang.String[] getExcludedEnvironmentVariables()
-
isDebug
protected abstract boolean isDebug()
-
getForkCount
protected abstract int getForkCount()
-
isReuseForks
protected abstract boolean isReuseForks()
-
getPluginPlatform
@Nonnull protected abstract Platform getPluginPlatform()
-
getJdkForTests
@Nonnull protected abstract JdkAttributes getJdkForTests()
-
getBooterClasspath
@Nonnull protected abstract Classpath getBooterClasspath()
-
createCommandLine
@Nonnull public abstract OutputStreamFlushableCommandline createCommandLine(@Nonnull StartupConfiguration config, int forkNumber, @Nonnull java.io.File dumpLogDirectory) throws SurefireBooterForkException
- Parameters:
config- The startup configurationforkNumber- index of forked JVM, to be the replacement in the argLinedumpLogDirectory- directory for dump log file- Returns:
- CommandLine able to flush entire command going to be sent to forked JVM
- Throws:
SurefireBooterForkException- when unable to perform the fork
-
-