abstract class EmbeddedReplicaSetSpec extends Specification
A base for the specifications that need real MongoDB transactions, which a standalone server refuses: they are served by an embedded replica set of one.
It is a real mongod, as a container is, and it needs no Docker - so a developer without one runs these, and a CI job runs them without a container to lose halfway through a specification.
A specification extending this needs grails-data-mongodb-embedded and the flapdoodle
library it runs the server with on its test class path; this module compiles against them and
carries neither.
| Modifiers | Name | Description |
|---|---|---|
protected java.lang.String |
mongoUrl |
| Constructor and description |
|---|
EmbeddedReplicaSetSpec() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
cleanupSpec() |
|
void |
setupSpec() |