public static final class MongoDBResourceManager.Builder extends TestContainerResourceManager.Builder<MongoDBResourceManager>
MongoDBResourceManager.containerImageName, containerImageTag, host, port, testId, useStaticContainer| Modifier and Type | Method and Description |
|---|---|
MongoDBResourceManager |
build()
Builds and returns a Resource Manager that extends TestContainerResourceManager.
|
MongoDBResourceManager.Builder |
setDatabaseName(java.lang.String databaseName)
Sets the database name to that of a static database instance.
|
setContainerImageName, setContainerImageTag, setHost, setPort, useStaticContainerpublic MongoDBResourceManager.Builder setDatabaseName(java.lang.String databaseName)
Note: if a database name is set, and a static MongoDB server is being used (useStaticContainer() is also called on the builder), then a database will be created on the static server if it does not exist, and it will not be removed when cleanupAll() is called on the MongoDBResourceManager.
databaseName - The database name.public MongoDBResourceManager build()
TestContainerResourceManager.Builderbuild in class TestContainerResourceManager.Builder<MongoDBResourceManager>