class StartMongoGrailsIntegrationExtension extends AbstractMongoGrailsExtension implements IGlobalExtension
While unit tests can spin up as many Mongo instances as they desire, integration tests require a fully running server. This extension will start a single MongoDB instance for the life of the entire test run if an existing instance is not detected.
Type | Name and description |
---|---|
static java.lang.String |
connectionString |
static GenericContainer |
dbContainer |
Properties inherited from class | Properties |
---|---|
class AbstractMongoGrailsExtension |
DEFAULT_MONGO_PORT, DEFAULT_MONGO_VERSION, MONGO_VERSION_PROPERTY |
Constructor and description |
---|
StartMongoGrailsIntegrationExtension() |
Methods inherited from class | Name |
---|---|
class AbstractMongoGrailsExtension |
createConnectionString, getDesiredMongoDockerName, getDesiredMongoVersion, isAutoStartedMongoSpec, isIntegrationSpec, isIntegrationTestRun, isMongoAlreadyRunning, isMongoSpec |
Groovy Documentation