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