Class DatabaseManager.DatabaseManagerBuilder
java.lang.Object
de.softwareforge.testing.postgres.embedded.DatabaseManager.Builder<DatabaseManager>
de.softwareforge.testing.postgres.embedded.DatabaseManager.DatabaseManagerBuilder
- Enclosing class:
- DatabaseManager
public static final class DatabaseManager.DatabaseManagerBuilder
extends DatabaseManager.Builder<DatabaseManager>
Create new
DatabaseManager
instances.-
Field Summary
Fields inherited from class de.softwareforge.testing.postgres.embedded.DatabaseManager.Builder
databasePreparers, instancePreparers, multiMode
-
Constructor Summary
ConstructorDescriptionDatabaseManagerBuilder
(boolean multiMode) Creates a new builder forDatabaseManager
instances. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newDatabaseManager
instance from the builder.Methods inherited from class de.softwareforge.testing.postgres.embedded.DatabaseManager.Builder
withCustomizer, withDatabasePreparer, withDatabasePreparers, withInstancePreparer, withInstancePreparers, withPreparer
-
Constructor Details
-
DatabaseManagerBuilder
public DatabaseManagerBuilder(boolean multiMode) Creates a new builder forDatabaseManager
instances.- Parameters:
multiMode
- True if the database manager should return a new database instance for everyDatabaseManager.getDatabaseInfo()
} call, false if it should return the same database instance.
-
-
Method Details
-
build
Creates a newDatabaseManager
instance from the builder.- Specified by:
build
in classDatabaseManager.Builder<DatabaseManager>
- Returns:
- A database manager. Never null.
-