abstract class AutoStartedMongoSpec extends Specification
A base specification class to handling autostarting MongoDB & bootstrapping the mongo datastore if defined. This class may only be used with unit tests.
Type | Name and description |
---|---|
MongoDBContainer |
dbContainer |
java.lang.String |
mongoHost |
java.lang.String |
mongoPort |
Constructor and description |
---|
AutoStartedMongoSpec() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.List<java.lang.Package> |
getMongoPackages() The packages to initialize the MongoDatastore (if defined) |
|
boolean |
shouldInitializeDatastore() If MongoDatastore is defined, it will be initialized with the dbContainer |
Groovy Documentation