Skip to content

Commit fc7b9c0

Browse files
committed
Add @API annotation and javadoc
Issue: #4135 Signed-off-by: yongjunhong <[email protected]>
1 parent 5ab051d commit fc7b9c0

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

junit-vintage-engine/src/main/java/org/junit/vintage/engine/VintageTestEngine.java

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
package org.junit.vintage.engine;
1212

1313
import static org.apiguardian.api.API.Status.INTERNAL;
14+
import static org.apiguardian.api.API.Status.STABLE;
1415
import static org.junit.platform.engine.TestExecutionResult.successful;
1516
import static org.junit.vintage.engine.descriptor.VintageTestDescriptor.ENGINE_ID;
1617

@@ -51,8 +52,29 @@ public final class VintageTestEngine implements TestEngine {
5152

5253
private static final int DEFAULT_THREAD_POOL_SIZE = Runtime.getRuntime().availableProcessors();
5354
private static final int SHUTDOWN_TIMEOUT_SECONDS = 30;
54-
private static final String PARALLEL_EXECUTION_ENABLED = "junit.vintage.execution.parallel.enabled";
55-
private static final String PARALLEL_POOL_SIZE = "junit.vintage.execution.parallel.pool-size";
55+
56+
/**
57+
* Indicates whether parallel execution is enabled for the JUnit Vintage engine.
58+
*
59+
* <p>Set this property to {@code true} to enable parallel execution of tests.
60+
* Defaults to {@code false}.
61+
*
62+
* @since 5.12
63+
*/
64+
@API(status = STABLE, since = "5.12")
65+
public static final String PARALLEL_EXECUTION_ENABLED = "junit.vintage.execution.parallel.enabled";
66+
67+
/**
68+
* Specifies the size of the thread pool to be used for parallel execution.
69+
*
70+
* <p>Set this property to an integer value to specify the number of threads
71+
* to be used for parallel execution. Defaults to the number of available
72+
* processors.
73+
*
74+
* @since 5.12
75+
*/
76+
@API(status = STABLE, since = "5.12")
77+
public static final String PARALLEL_POOL_SIZE = "junit.vintage.execution.parallel.pool-size";
5678

5779
@Override
5880
public String getId() {

0 commit comments

Comments
 (0)