Class MultiDatabaseBuilder
java.lang.Object
de.softwareforge.testing.postgres.junit5.MultiDatabaseBuilder
Create a new cluster that supports multiple databases. Each database is cloned from a template.
-
Method Summary
Modifier and TypeMethodDescriptioninstance()
Create a vanilla database -- just initialized, no customizations applied.Create a vanilla database with standard initializations (EmbeddedPostgres.Builder.withDefaults()
).preparedInstance
(DatabasePreparer preparer) Create a vanilla database and execute aDatabasePreparer
for initialization on it.preparedInstanceWithDefaults
(DatabasePreparer preparer) Create a vanilla database with defaults and execute aDatabasePreparer
for initialization on it.
-
Method Details
-
instance
Create a vanilla database -- just initialized, no customizations applied. -
instanceWithDefaults
Create a vanilla database with standard initializations (EmbeddedPostgres.Builder.withDefaults()
). -
preparedInstance
public static DatabaseManager.Builder<EmbeddedPgExtension> preparedInstance(DatabasePreparer preparer) Create a vanilla database and execute aDatabasePreparer
for initialization on it. -
preparedInstanceWithDefaults
public static DatabaseManager.Builder<EmbeddedPgExtension> preparedInstanceWithDefaults(DatabasePreparer preparer) Create a vanilla database with defaults and execute aDatabasePreparer
for initialization on it.
-