Class JUnitCoreParameters

java.lang.Object
org.apache.maven.surefire.junitcore.JUnitCoreParameters

public final class JUnitCoreParameters extends Object
  • Field Details

    • PARALLEL_KEY

      public static final String PARALLEL_KEY
      See Also:
    • PERCORETHREADCOUNT_KEY

      public static final String PERCORETHREADCOUNT_KEY
      See Also:
    • THREADCOUNT_KEY

      public static final String THREADCOUNT_KEY
      See Also:
    • THREADCOUNTSUITES_KEY

      public static final String THREADCOUNTSUITES_KEY
      See Also:
    • THREADCOUNTCLASSES_KEY

      public static final String THREADCOUNTCLASSES_KEY
      See Also:
    • THREADCOUNTMETHODS_KEY

      public static final String THREADCOUNTMETHODS_KEY
      See Also:
    • USEUNLIMITEDTHREADS_KEY

      public static final String USEUNLIMITEDTHREADS_KEY
      See Also:
    • PARALLEL_TIMEOUT_KEY

      public static final String PARALLEL_TIMEOUT_KEY
      See Also:
    • PARALLEL_TIMEOUTFORCED_KEY

      public static final String PARALLEL_TIMEOUTFORCED_KEY
      See Also:
    • PARALLEL_OPTIMIZE_KEY

      public static final String PARALLEL_OPTIMIZE_KEY
      See Also:
    • parallel

      private final String parallel
    • perCoreThreadCount

      private final boolean perCoreThreadCount
    • threadCount

      private final int threadCount
    • threadCountSuites

      private final int threadCountSuites
    • threadCountClasses

      private final int threadCountClasses
    • threadCountMethods

      private final int threadCountMethods
    • parallelTestsTimeoutInSeconds

      private final double parallelTestsTimeoutInSeconds
    • parallelTestsTimeoutForcedInSeconds

      private final double parallelTestsTimeoutForcedInSeconds
    • useUnlimitedThreads

      private final boolean useUnlimitedThreads
    • parallelOptimization

      private final boolean parallelOptimization
  • Constructor Details

    • JUnitCoreParameters

      public JUnitCoreParameters(Map<String,String> properties)
  • Method Details

    • lowerCase

      private static Collection<String> lowerCase(String... elements)
    • isAllParallel

      private boolean isAllParallel()
    • isParallelMethods

      public boolean isParallelMethods()
    • isParallelClasses

      public boolean isParallelClasses()
    • isParallelSuites

      public boolean isParallelSuites()
    • isParallelBoth

      @Deprecated public boolean isParallelBoth()
      Deprecated.
      Instead use the expression isParallelMethods() && isParallelClasses().
      Returns:
      true if classes and methods are both parallel
    • isPerCoreThreadCount

      public boolean isPerCoreThreadCount()
    • getThreadCount

      public int getThreadCount()
    • getThreadCountMethods

      public int getThreadCountMethods()
    • getThreadCountClasses

      public int getThreadCountClasses()
    • getThreadCountSuites

      public int getThreadCountSuites()
    • isUseUnlimitedThreads

      public boolean isUseUnlimitedThreads()
    • getParallelTestsTimeoutInSeconds

      public double getParallelTestsTimeoutInSeconds()
    • getParallelTestsTimeoutForcedInSeconds

      public double getParallelTestsTimeoutForcedInSeconds()
    • isNoThreading

      public boolean isNoThreading()
    • isParallelismSelected

      public boolean isParallelismSelected()
    • isParallelOptimization

      public boolean isParallelOptimization()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • property

      private static boolean property(Map<String,String> properties, String key, boolean fallback)
    • property

      private static String property(Map<String,String> properties, String key, String fallback)
    • property

      private static int property(Map<String,String> properties, String key, int fallback)
    • property

      private static double property(Map<String,String> properties, String key, double fallback)