Annotation Type DisabledIfEnvironmentVariable

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String matches
      A regular expression that will be used to match against the retrieved value of the named() environment variable.
      String named
      The name of the environment variable to retrieve.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String disabledReason
      Custom reason to provide if the test or container is disabled.
    • Element Detail

      • named

        String named
        The name of the environment variable to retrieve.
        Returns:
        the environment variable name; never blank
        See Also:
        System.getenv(String)
      • matches

        String matches
        A regular expression that will be used to match against the retrieved value of the named() environment variable.
        Returns:
        the regular expression; never blank
        See Also:
        String.matches(String), Pattern
      • disabledReason

        @API(status=STABLE,
             since="5.7")
        String disabledReason
        Custom reason to provide if the test or container is disabled.

        If a custom reason is supplied, it will be combined with the default reason for this annotation. If a custom reason is not supplied, the default reason will be used.

        Since:
        5.7
        Default:
        ""