Package com.opentable.db.postgres.junit
Class EmbeddedPostgresRules
java.lang.Object
com.opentable.db.postgres.junit.EmbeddedPostgresRules
-
Method Summary
Modifier and TypeMethodDescriptionstatic PreparedDbRulepreparedDatabase(DatabasePreparer preparer) Returns aPreparedDbRuleto create a Postgres cluster, shared amongst all test cases in this JVM.static SingleInstancePostgresRuleCreate a vanilla Postgres cluster -- just initialized, no customizations applied.
-
Method Details
-
singleInstance
Create a vanilla Postgres cluster -- just initialized, no customizations applied.- Returns:
- SingleInstancePostgresRule
-
preparedDatabase
Returns aPreparedDbRuleto 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:
- SingleInstancePostgresRule
-