public final class EmbeddedPostgresRules extends Object
Modifier and Type | Method and Description |
---|---|
static PreparedDbRule |
preparedDatabase(DatabasePreparer preparer)
Returns a
TestRule to create a Postgres cluster, shared amongst all test cases in this JVM. |
static SingleInstancePostgresRule |
singleInstance()
Create a vanilla Postgres cluster -- just initialized, no customizations applied.
|
public static SingleInstancePostgresRule singleInstance()
public static PreparedDbRule preparedDatabase(DatabasePreparer preparer)
TestRule
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.Copyright © 2018. All rights reserved.