Class LauncherConstants


  • @API(status=STABLE,
         since="1.7")
    public class LauncherConstants
    extends java.lang.Object
    Collection of constants related to Launcher.
    Since:
    1.3
    See Also:
    ConfigurationParameters
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CAPTURE_MAX_BUFFER_DEFAULT
      Default maximum number of bytes for buffering to use per thread and output type if output capturing is enabled.
      static java.lang.String CAPTURE_MAX_BUFFER_PROPERTY_NAME
      Property name used to configure the maximum number of bytes for buffering to use per thread and output type if output capturing is enabled: "junit.platform.output.capture.maxBuffer"
      static java.lang.String CAPTURE_STDERR_PROPERTY_NAME
      Property name used to enable capturing output to System.err: "junit.platform.output.capture.stderr"
      static java.lang.String CAPTURE_STDOUT_PROPERTY_NAME
      Property name used to enable capturing output to System.out: "junit.platform.output.capture.stdout"
      static java.lang.String DEACTIVATE_ALL_LISTENERS_PATTERN
      Wildcard pattern which signals that all listeners registered via the ServiceLoader mechanism should be deactivated: "*"
      static java.lang.String DEACTIVATE_LISTENERS_PATTERN_PROPERTY_NAME
      Property name used to provide patterns for deactivating listeners registered via the ServiceLoader mechanism: "junit.platform.execution.listeners.deactivate"
      static java.lang.String STDERR_REPORT_ENTRY_KEY
      Key used to publish captured output to System.err as part of a ReportEntry: "stderr"
      static java.lang.String STDOUT_REPORT_ENTRY_KEY
      Key used to publish captured output to System.out as part of a ReportEntry: "stdout"
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LauncherConstants()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • CAPTURE_MAX_BUFFER_PROPERTY_NAME

        public static final java.lang.String CAPTURE_MAX_BUFFER_PROPERTY_NAME
        Property name used to configure the maximum number of bytes for buffering to use per thread and output type if output capturing is enabled: "junit.platform.output.capture.maxBuffer"

        Value must be an integer; defaults to 4194304.

        See Also:
        CAPTURE_MAX_BUFFER_DEFAULT, Constant Field Values
      • STDOUT_REPORT_ENTRY_KEY

        public static final java.lang.String STDOUT_REPORT_ENTRY_KEY
        Key used to publish captured output to System.out as part of a ReportEntry: "stdout"
        See Also:
        Constant Field Values
      • STDERR_REPORT_ENTRY_KEY

        public static final java.lang.String STDERR_REPORT_ENTRY_KEY
        Key used to publish captured output to System.err as part of a ReportEntry: "stderr"
        See Also:
        Constant Field Values
      • DEACTIVATE_LISTENERS_PATTERN_PROPERTY_NAME

        public static final java.lang.String DEACTIVATE_LISTENERS_PATTERN_PROPERTY_NAME
        Property name used to provide patterns for deactivating listeners registered via the ServiceLoader mechanism: "junit.platform.execution.listeners.deactivate"

        Pattern Matching Syntax

        If the property value consists solely of an asterisk (*), all listeners will be deactivated. Otherwise, the property value will be treated as a comma-separated list of patterns where each individual pattern will be matched against the fully qualified class name (FQCN) of each registered listener. Any dot (.) in a pattern will match against a dot (.) or a dollar sign ($) in a FQCN. Any asterisk (*) will match against one or more characters in a FQCN. All other characters in a pattern will be matched one-to-one against a FQCN.

        Examples

        • *: deactivates all listeners.
        • org.junit.*: deactivates every listener under the org.junit base package and any of its subpackages.
        • *.MyListener: deactivates every listener whose simple class name is exactly MyListener.
        • *System*, *Dev*: deactivates every listener whose FQCN contains System or Dev.
        • org.example.MyListener, org.example.TheirListener: deactivates listeners whose FQCN is exactly org.example.MyListener or org.example.TheirListener.
        See Also:
        DEACTIVATE_ALL_LISTENERS_PATTERN, TestExecutionListener, Constant Field Values
    • Constructor Detail

      • LauncherConstants

        private LauncherConstants()