Annotation Type EnabledIfSystemProperty

    • 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() JVM system property.
      String named
      The name of the JVM system property 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.
      • matches

        String matches
        A regular expression that will be used to match against the retrieved value of the named() JVM system property.
        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:
        ""