Class ForkConfiguration
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
-
- Direct Known Subclasses:
DefaultForkConfiguration
public abstract class ForkConfiguration extends java.lang.Object
Configuration for forking tests.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
DEFAULT_PROVIDER_CLASS
-
Constructor Summary
Constructors Constructor Description ForkConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract OutputStreamFlushableCommandline
createCommandLine(StartupConfiguration config, int forkNumber, java.io.File dumpLogDirectory)
protected abstract java.lang.String
getArgLine()
protected abstract Classpath
getBooterClasspath()
protected abstract java.lang.String
getDebugLine()
protected abstract java.util.Map<java.lang.String,java.lang.String>
getEnvironmentVariables()
protected abstract java.lang.String[]
getExcludedEnvironmentVariables()
protected abstract int
getForkCount()
protected abstract JdkAttributes
getJdkForTests()
protected abstract java.util.Properties
getModelProperties()
protected abstract Platform
getPluginPlatform()
abstract java.io.File
getTempDirectory()
protected abstract java.io.File
getWorkingDirectory()
protected abstract boolean
isDebug()
protected abstract boolean
isReuseForks()
-
-
-
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
-
-