Class ForkConfiguration

java.lang.Object
org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
Direct Known Subclasses:
DefaultForkConfiguration

public abstract class ForkConfiguration extends Object
Configuration for forking tests.
  • Constructor Details

    • ForkConfiguration

      public ForkConfiguration()
  • Method Details

    • getForkNodeFactory

      @Nonnull public abstract ForkNodeFactory getForkNodeFactory()
    • getTempDirectory

      @Nonnull public abstract File getTempDirectory()
    • getDebugLine

      @Nullable protected abstract String getDebugLine()
    • getWorkingDirectory

      @Nonnull protected abstract File getWorkingDirectory()
    • getModelProperties

      @Nonnull protected abstract Properties getModelProperties()
    • getArgLine

      @Nullable protected abstract String getArgLine()
    • getEnvironmentVariables

      @Nonnull protected abstract Map<String,String> getEnvironmentVariables()
    • getExcludedEnvironmentVariables

      @Nonnull protected abstract 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 Commandline createCommandLine(@Nonnull StartupConfiguration config, int forkNumber, @Nonnull File dumpLogDirectory) throws SurefireBooterForkException
      Parameters:
      config - The startup configuration
      forkNumber - index of forked JVM, to be the replacement in the argLine
      dumpLogDirectory - 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