Class Constants

java.lang.Object
org.junit.vintage.engine.Constants

@API(status=STABLE, since="5.12") public final class Constants extends Object
Collection of constants related to the VintageTestEngine.
Since:
5.12
  • Field Details

    • PARALLEL_EXECUTION_ENABLED

      @API(status=EXPERIMENTAL, since="5.12") public static final String PARALLEL_EXECUTION_ENABLED
      Indicates whether parallel execution is enabled for the JUnit Vintage engine.

      Set this property to true to enable parallel execution of tests. Defaults to false.

      Since:
      5.12
      See Also:
    • PARALLEL_POOL_SIZE

      @API(status=EXPERIMENTAL, since="5.12") public static final String PARALLEL_POOL_SIZE
      Specifies the size of the thread pool to be used for parallel execution.

      Set this property to an integer value to specify the number of threads to be used for parallel execution. Defaults to the number of available processors.

      Since:
      5.12
      See Also:
    • PARALLEL_CLASS_EXECUTION

      @API(status=EXPERIMENTAL, since="5.12") public static final String PARALLEL_CLASS_EXECUTION
      Indicates whether parallel execution is enabled for test classes in the JUnit Vintage engine.

      Set this property to true to enable parallel execution of test classes. Defaults to false.

      Since:
      5.12
      See Also:
    • PARALLEL_METHOD_EXECUTION

      @API(status=EXPERIMENTAL, since="5.12") public static final String PARALLEL_METHOD_EXECUTION
      Indicates whether parallel execution is enabled for test methods in the JUnit Vintage engine.

      Set this property to true to enable parallel execution of test methods. Defaults to false.

      Since:
      5.12
      See Also: