Package org.hibernate.testing.orm.junit
Annotation Type FailureExpected
-
@Inherited @Target({TYPE,METHOD}) @Retention(RUNTIME) @Repeatable(FailureExpectedGroup.class) @ExtendWith(FailureExpectedExtension.class) public @interface FailureExpected
Marks a test method or class as being expected to fail.- See Also:
FailureExpectedExtension
-
-
Field Summary
Fields Modifier and Type Fields Description static String
VALIDATE_FAILURE_EXPECTED
Setting used to indicate that FailureExpected tests should be run and that we should validate they still fail.
-
-
-
Field Detail
-
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.
-
-
Element Detail
-
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:
- ""
-
-