Package org.hibernate.testing.orm.junit
Class FailureExpectedExtension
java.lang.Object
org.hibernate.testing.orm.junit.FailureExpectedExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.ExecutionCondition
,org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class FailureExpectedExtension
extends Object
implements org.junit.jupiter.api.extension.ExecutionCondition, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.TestExecutionExceptionHandler
JUnit 5 extension used to support
FailureExpected
handling-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterEach
(org.junit.jupiter.api.extension.ExtensionContext context) void
beforeEach
(org.junit.jupiter.api.extension.ExtensionContext context) org.junit.jupiter.api.extension.ConditionEvaluationResult
evaluateExecutionCondition
(org.junit.jupiter.api.extension.ExtensionContext context) void
handleTestExecutionException
(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
-
Field Details
-
failureExpectedValidation
public static final boolean failureExpectedValidation
-
-
Constructor Details
-
FailureExpectedExtension
public FailureExpectedExtension()
-
-
Method Details
-
evaluateExecutionCondition
public org.junit.jupiter.api.extension.ConditionEvaluationResult evaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
evaluateExecutionCondition
in interfaceorg.junit.jupiter.api.extension.ExecutionCondition
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterEach
in interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
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
-