Package com.opentable.db.postgres.junit
Class EmbeddedPostgresRules
- java.lang.Object
-
- com.opentable.db.postgres.junit.EmbeddedPostgresRules
-
public final class EmbeddedPostgresRules extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreparedDbRulepreparedDatabase(DatabasePreparer preparer)Returns aPreparedDbRuleto create a Postgres cluster, shared amongst all test cases in this JVM.static SingleInstancePostgresRulesingleInstance()Create a vanilla Postgres cluster -- just initialized, no customizations applied.
-
-
-
Method Detail
-
singleInstance
public static SingleInstancePostgresRule singleInstance()
Create a vanilla Postgres cluster -- just initialized, no customizations applied.- Returns:
- SingleInstancePostgresRule
-
preparedDatabase
public static PreparedDbRule preparedDatabase(DatabasePreparer preparer)
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
-
-