@groovy.transform.CompileStatic abstract class MongoSpec extends Specification
Base class for MongoDB tests
| Type | Name and description |
|---|---|
MongoDatastore |
mongoDatastore |
Session |
mongoSession |
| Constructor and description |
|---|
MongoSpec() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
cleanup() |
|
MongoClient |
createMongoClient()
|
|
protected java.util.List<java.lang.Class> |
getDomainClasses()
|
|
MappingContext |
getMappingContext()
|
|
MongoClient |
getMongoClient()
|
|
protected java.lang.String |
getPackageToScan(Config config)Obtains the default package to scan |
|
void |
setup() |
|
void |
setupSpec() |
Obtains the default package to scan
config - The configurationGroovy Documentation