Debian Codegraph @

junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/Resources.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 * Common resource names for synchronizing test execution.
19 *
20 * @since 5.3
21 * @see ResourceLock
22 */
23 @API(status = STABLE, since = "5.10")
24 public class Resources {
25
26 /**
27 * Represents Java's system properties: {@value}
28 *
29 * @see System#getProperties()
30 * @see System#setProperties(java.util.Properties)
31 */
32 public static final String SYSTEM_PROPERTIES = "java.lang.System.properties";
33
34 /**
35 * Represents the standard output stream of the current process: {@value}
36 *
37 * @see System#out
38 * @see System#setOut(java.io.PrintStream)
39 */
40 public static final String SYSTEM_OUT = "java.lang.System.out";
41
42 /**
43 * Represents the standard error stream of the current process: {@value}
44 *
45 * @see System#err
46 * @see System#setErr(java.io.PrintStream)
47 */
48 public static final String SYSTEM_ERR = "java.lang.System.err";
49
50 /**
51 * Represents the default locale for the current instance of the JVM:
52 * {@value}
53 *
54 * @since 5.4
55 * @see java.util.Locale#setDefault(java.util.Locale)
56 */
57 @API(status = STABLE, since = "5.10")
58 public static final String LOCALE = "java.util.Locale.default";
59
60 /**
61 * Represents the default time zone for the current instance of the JVM:
62 * {@value}
63 *
64 * @since 5.4
65 * @see java.util.TimeZone#setDefault(java.util.TimeZone)
66 */
67 @API(status = STABLE, since = "5.10")
68 public static final String TIME_ZONE = "java.util.TimeZone.default";
69
70 /**
71 * Represents the global resource lock: {@value}
72 *
73 * @since 5.8
74 * @see Isolated
75 * @see org.junit.platform.engine.support.hierarchical.ExclusiveResource
76 */
77 @API(status = STABLE, since = "5.10")
78 public static final String GLOBAL = "org.junit.platform.engine.support.hierarchical.ExclusiveResource.GLOBAL_KEY";
79
80 private Resources() {
81 /* no-op */
82 }
83
84 }