Package org.hibernate.testing.orm.junit
Annotation Type ExpectedException
-
@Inherited @Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @ExtendWith(ExpectedExceptionExtension.class) public @interface ExpectedException
Annotation that can be used, in conjunction withExpectedExceptionExtension
, to indicate that a specific test is expected to fail in a particular way (throw the specified exception) as its "success condition".- See Also:
ExpectedExceptionExtension