Package com.opentable.db.postgres.junit5
Class EmbeddedPostgresExtension
java.lang.Object
com.opentable.db.postgres.junit5.EmbeddedPostgresExtension
-
Method Summary
Modifier and TypeMethodDescriptionstatic PreparedDbExtension
preparedDatabase
(DatabasePreparer preparer) Returns aPreparedDbExtension
to create a Postgres cluster, shared amongst all test cases in this JVM.Create a vanilla Postgres cluster -- just initialized, no customizations applied.
-
Method Details
-
singleInstance
Create a vanilla Postgres cluster -- just initialized, no customizations applied.- Returns:
- SingleInstancePostgresExtension
-
preparedDatabase
Returns aPreparedDbExtension
to create a Postgres cluster, shared amongst all test cases in this JVM. The rule contributes Config switches to configure each test case to get its own database.- Parameters:
preparer
- DatabasePreparer- Returns:
- PreparedDBExtension
-