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 TypeMethodDescriptionvoidafterAll(ExtensionContext extensionContext) voidafterEach(ExtensionContext extensionContext) voidbeforeAll(ExtensionContext extensionContext) voidbeforeEach(ExtensionContext extensionContext) Returns aDatabaseInfodescribing the database connection.Returns the data source for the current instance.static de.softwareforge.testing.postgres.junit5.EmbeddedPgExtension.EmbeddedPgExtensionBuilderstatic 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 aDatabaseInfodescribing the database connection.- Throws:
SQLException
-
beforeAll
- Specified by:
beforeAllin interfaceBeforeAllCallback- Throws:
Exception
-
afterAll
- Specified by:
afterAllin interfaceAfterAllCallback- Throws:
Exception
-
beforeEach
- Specified by:
beforeEachin interfaceBeforeEachCallback- Throws:
Exception
-
afterEach
- Specified by:
afterEachin interfaceAfterEachCallback- Throws:
Exception
-