Package org.hibernate.testing.orm.junit
Class ExpectedExceptionExtension
- java.lang.Object
-
- org.hibernate.testing.orm.junit.ExpectedExceptionExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class ExpectedExceptionExtension extends Object implements org.junit.jupiter.api.extension.TestExecutionExceptionHandler
TestExecutionExceptionHandler used in conjunction withExpectedException
to support annotating tests with a specific exception that indicates a success (we are expecting that exception in that tested condition).- See Also:
ExpectedException
-
-
Constructor Summary
Constructors Constructor Description ExpectedExceptionExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
-
-
-
Method Detail
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable
- Specified by:
handleTestExecutionException
in interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler
- Throws:
Throwable
-
-