Annotation Interface FailureExpected


Marks a test method or class as being expected to fail.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The key of a JIRA issue which covers this expected failure.
    A reason why the failure is expected
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Setting used to indicate that FailureExpected tests should be run and that we should validate they still fail.
  • Field Details

    • VALIDATE_FAILURE_EXPECTED

      static final String VALIDATE_FAILURE_EXPECTED
      Setting used to indicate that FailureExpected tests should be run and that we should validate they still fail. Note that in this "validation mode", a test failure is interpreted as a success which is the main difference from JUnit's support.
      See Also:
  • Element Details

    • reason

      String reason
      A reason why the failure is expected
      Default:
      ""
    • jiraKey

      String jiraKey
      The key of a JIRA issue which covers this expected failure.
      Returns:
      The jira issue key
      Default:
      ""