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 java.lang.Object implements org.junit.jupiter.api.extension.TestExecutionExceptionHandlerTestExecutionExceptionHandler used in conjunction withExpectedExceptionto 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 voidhandleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable)
-
-
-
Method Detail
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable) throws java.lang.Throwable- Specified by:
handleTestExecutionExceptionin interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler- Throws:
java.lang.Throwable
-
-