Debian Codegraph @

junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExecutionMode.java

raw symbols SCIP
1 /*
2 * Copyright 2015-2024 the original author or authors.
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v2.0 which
6 * accompanies this distribution and is available at
7 *
8 * https://www.eclipse.org/legal/epl-v20.html
9 */
10
11 package org.junit.jupiter.api.parallel;
12
13 import static org.apiguardian.api.API.Status.STABLE;
14
15 import org.apiguardian.api.API;
16
17 /**
18 * Supported execution modes for parallel test execution.
19 *
20 * @since 5.3
21 * @see #SAME_THREAD
22 * @see #CONCURRENT
23 */
24 @API(status = STABLE, since = "5.10")
25 public enum ExecutionMode {
26
27 /**
28 * Force execution in same thread as the parent node.
29 *
30 * @see #CONCURRENT
31 */
32 SAME_THREAD,
33
34 /**
35 * Allow concurrent execution with any other node.
36 *
37 * @see #SAME_THREAD
38 */
39 CONCURRENT
40
41 }