abstract class AbstractMongoGrailsExtension extends java.lang.Object
Abstract class for Mongo Grails extensions.
Type | Name and description |
---|---|
static int |
DEFAULT_MONGO_PORT |
static java.lang.String |
DEFAULT_MONGO_VERSION |
static java.lang.String |
MONGO_VERSION_PROPERTY |
Constructor and description |
---|
AbstractMongoGrailsExtension() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.String |
createConnectionString(java.lang.String host, int port) |
|
static DockerImageName |
getDesiredMongoDockerName() Returns the configured docker image name |
|
static java.lang.String |
getDesiredMongoVersion() Returns the desire mongo version. |
|
boolean |
isAutoStartedMongoSpec(SpecInfo spec) AutoStartedMongoSpec is the marker class that enables our extension to autostart mongodb in a container & initialize a datastore |
|
boolean |
isIntegrationSpec(SpecInfo spec) |
|
boolean |
isIntegrationTestRun() Integration tests have a special property added by the Grails Gradle plugin that ensure they can be detected so different extensions can be applied on Unit vs Integration |
|
boolean |
isMongoAlreadyRunning() Determines if MongoDB is already running. |
|
boolean |
isMongoSpec(SpecInfo spec) MongoSpec is used to spin up mongo db instances per a test and let the end-user control when it's started. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns the configured docker image name
Returns the desire mongo version. If not set, it will by defaulted to `DEFAULT_MONGO_VERSION`.
AutoStartedMongoSpec is the marker class that enables our extension to autostart mongodb in a container & initialize a datastore
Integration tests have a special property added by the Grails Gradle plugin that ensure they can be detected so different extensions can be applied on Unit vs Integration
Determines if MongoDB is already running. In the event that it is, extensions will not override it.
MongoSpec is used to spin up mongo db instances per a test and let the end-user control when it's started.
Groovy Documentation