abstract class GormDatastoreSpec extends Specification
A Spec base class that manages a Session for each feature as well as meta class cleanup on the Entity classes in the TCK. Users of this class need to provide a "setup" class at runtime that provides the session instance. It *must* have the following name: - org.grails.datastore.gorm.Setup This class must contain a static no-arg method called "setup()" that returns a Session instance.
| Type | Name and description |
|---|---|
static java.lang.Object |
CURRENT_TEST_NAME |
static java.lang.Object |
SETUP_CLASS_NAME |
static java.lang.Object |
TEST_CLASSES |
Session |
session |
java.lang.Class |
setupClass |
| Constructor and description |
|---|
GormDatastoreSpec() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
cleanup() |
|
Session |
createSession() |
|
java.util.List |
getDomainClasses() |
|
static java.lang.Class |
loadSetupClass() |
|
java.lang.Object |
setup() |
|
java.lang.Object |
setupSpec() |
Groovy Documentation