Class Resources


  • @API(status=STABLE,
         since="5.10")
    public class Resources
    extends java.lang.Object
    Common resource names for synchronizing test execution.
    Since:
    5.3
    See Also:
    ResourceLock
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String GLOBAL
      Represents the global resource lock: "org.junit.platform.engine.support.hierarchical.ExclusiveResource.GLOBAL_KEY"
      static java.lang.String LOCALE
      Represents the default locale for the current instance of the JVM: "java.util.Locale.default"
      static java.lang.String SYSTEM_ERR
      Represents the standard error stream of the current process: "java.lang.System.err"
      static java.lang.String SYSTEM_OUT
      Represents the standard output stream of the current process: "java.lang.System.out"
      static java.lang.String SYSTEM_PROPERTIES
      Represents Java's system properties: "java.lang.System.properties"
      static java.lang.String TIME_ZONE
      Represents the default time zone for the current instance of the JVM: "java.util.TimeZone.default"
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Resources()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SYSTEM_PROPERTIES

        public static final java.lang.String SYSTEM_PROPERTIES
        Represents Java's system properties: "java.lang.System.properties"
        See Also:
        System.getProperties(), System.setProperties(java.util.Properties), Constant Field Values
      • SYSTEM_OUT

        public static final java.lang.String SYSTEM_OUT
        Represents the standard output stream of the current process: "java.lang.System.out"
        See Also:
        System.out, System.setOut(java.io.PrintStream), Constant Field Values
      • SYSTEM_ERR

        public static final java.lang.String SYSTEM_ERR
        Represents the standard error stream of the current process: "java.lang.System.err"
        See Also:
        System.err, System.setErr(java.io.PrintStream), Constant Field Values
      • LOCALE

        @API(status=STABLE,
             since="5.10")
        public static final java.lang.String LOCALE
        Represents the default locale for the current instance of the JVM: "java.util.Locale.default"
        Since:
        5.4
        See Also:
        Locale.setDefault(java.util.Locale), Constant Field Values
      • TIME_ZONE

        @API(status=STABLE,
             since="5.10")
        public static final java.lang.String TIME_ZONE
        Represents the default time zone for the current instance of the JVM: "java.util.TimeZone.default"
        Since:
        5.4
        See Also:
        TimeZone.setDefault(java.util.TimeZone), Constant Field Values
      • GLOBAL

        @API(status=STABLE,
             since="5.10")
        public static final java.lang.String GLOBAL
        Represents the global resource lock: "org.junit.platform.engine.support.hierarchical.ExclusiveResource.GLOBAL_KEY"
        Since:
        5.8
        See Also:
        Isolated, ExclusiveResource, Constant Field Values
    • Constructor Detail

      • Resources

        private Resources()