Class EmbeddedPgExtension
java.lang.Object
de.softwareforge.testing.postgres.junit5.EmbeddedPgExtension
- All Implemented Interfaces:
AfterAllCallback
,AfterEachCallback
,BeforeAllCallback
,BeforeEachCallback
,Extension
public final class EmbeddedPgExtension
extends Object
implements BeforeAllCallback, AfterAllCallback, BeforeEachCallback, AfterEachCallback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterAll
(ExtensionContext extensionContext) void
afterEach
(ExtensionContext extensionContext) void
beforeAll
(ExtensionContext extensionContext) void
beforeEach
(ExtensionContext extensionContext) Returns aDatabaseInfo
describing the database connection.Returns the data source for the current instance.static de.softwareforge.testing.postgres.junit5.EmbeddedPgExtension.EmbeddedPgExtensionBuilder
static de.softwareforge.testing.postgres.junit5.EmbeddedPgExtension.EmbeddedPgExtensionBuilder
-
Method Details
-
multiDatabase
public static de.softwareforge.testing.postgres.junit5.EmbeddedPgExtension.EmbeddedPgExtensionBuilder multiDatabase() -
singleDatabase
public static de.softwareforge.testing.postgres.junit5.EmbeddedPgExtension.EmbeddedPgExtensionBuilder singleDatabase() -
createDataSource
Returns the data source for the current instance.- Throws:
SQLException
-
createDatabaseInfo
Returns aDatabaseInfo
describing the database connection.- Throws:
SQLException
-
beforeAll
- Specified by:
beforeAll
in interfaceBeforeAllCallback
- Throws:
Exception
-
afterAll
- Specified by:
afterAll
in interfaceAfterAllCallback
- Throws:
Exception
-
beforeEach
- Specified by:
beforeEach
in interfaceBeforeEachCallback
- Throws:
Exception
-
afterEach
- Specified by:
afterEach
in interfaceAfterEachCallback
- Throws:
Exception
-