Package fr.ght1pc9kc.testy.mongo
Class WithEmbeddedMongo.WithEmbeddedMongoBuilder
java.lang.Object
fr.ght1pc9kc.testy.mongo.WithEmbeddedMongo.WithEmbeddedMongoBuilder
- Enclosing class:
WithEmbeddedMongo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Complet the extension constructionSet the name of the database.dbVersion
(MongoVersion mongoVersion) Set the Mongo Database version.setDatabaseName
(String databaseName) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
WithEmbeddedMongoBuilder
public WithEmbeddedMongoBuilder()
-
-
Method Details
-
dbVersion
Set the Mongo Database version. DefaultMongoVersion.V8
- Parameters:
mongoVersion
- The mongo version to start- Returns:
- This builder
-
dbName
Set the name of the database. Default random- Parameters:
databaseName
- The name of the database- Returns:
- This builder
-
setDatabaseName
@Deprecated(forRemoval=true, since="1.7.3") public WithEmbeddedMongo.WithEmbeddedMongoBuilder setDatabaseName(String databaseName) Deprecated, for removal: This API element is subject to removal in a future version.usedbName(String)
- Parameters:
databaseName
- set a name for the database- Returns:
- The builder
-
build
Complet the extension construction- Returns:
- The JUnit Extension
-
dbName(String)