Class ForkConfiguration

  • Direct Known Subclasses:
    DefaultForkConfiguration

    public abstract class ForkConfiguration
    extends java.lang.Object
    Configuration for forking tests.
    • Field Detail

      • DEFAULT_PROVIDER_CLASS

        static final java.lang.String DEFAULT_PROVIDER_CLASS
    • Constructor Detail

      • ForkConfiguration

        public ForkConfiguration()
    • 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 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