Class ForkConfiguration
java.lang.Object
org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
- Direct Known Subclasses:
DefaultForkConfiguration
Configuration for forking tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Commandline
createCommandLine
(StartupConfiguration config, int forkNumber, File dumpLogDirectory) protected abstract String
protected abstract Classpath
protected abstract String
protected abstract String[]
protected abstract int
abstract ForkNodeFactory
protected abstract JdkAttributes
protected abstract Properties
protected abstract Platform
abstract File
protected abstract File
protected abstract boolean
isDebug()
protected abstract boolean
-
Constructor Details
-
ForkConfiguration
public ForkConfiguration()
-
-
Method Details
-
getForkNodeFactory
-
getTempDirectory
-
getDebugLine
-
getWorkingDirectory
-
getModelProperties
-
getArgLine
-
getEnvironmentVariables
-
getExcludedEnvironmentVariables
-
isDebug
protected abstract boolean isDebug() -
getForkCount
protected abstract int getForkCount() -
isReuseForks
protected abstract boolean isReuseForks() -
getPluginPlatform
-
getJdkForTests
-
getBooterClasspath
-
createCommandLine
@Nonnull public abstract Commandline createCommandLine(@Nonnull StartupConfiguration config, int forkNumber, @Nonnull 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
-