Class AbstractPdoTest.SuiteExtension
java.lang.Object
org.tentackle.pdo.junit.AbstractPdoTest.SuiteExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.TestExecutionExceptionHandler
- Enclosing class:
AbstractPdoTest
public static class AbstractPdoTest.SuiteExtension
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.TestExecutionExceptionHandler
Opens the session once for all test classes and closes it when the test run ends.
Also marks the rolled back statements to be logged if a test method fails.
Also marks the rolled back statements to be logged if a test method fails.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) voidhandleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
-
Constructor Details
-
SuiteExtension
public SuiteExtension()Creates the extension.
-
-
Method Details
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
handleTestExecutionException
-