@CompileStatic trait DataIntegrationTest
Contains helpers for integration tests. Can be chained with some custom helper traits with the application-specific initialization logic.
Type | Name and description |
---|---|
DbDialectService |
dbDialectService |
HibernateDatastore |
hibernateDatastore |
JdbcTemplate |
jdbcTemplate |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
cleanupRegistry() |
|
void |
clearMetaClassChanges() Reverts all metaclass changes done since last call to trackMetaClassChanges() |
|
void |
flush() Flushes the current datastore session. |
|
void |
flushAndClear() |
|
Session |
getCurrentSession() |
|
AbstractDatastore |
getDatastore() consistency with other areas of grails and other unit tests |
|
void |
trackMetaClassChanges() Start tracking all metaclass changes made after this call, so it can all be undone later. |
Reverts all metaclass changes done since last call to trackMetaClassChanges()
Flushes the current datastore session.
consistency with other areas of grails and other unit tests
Start tracking all metaclass changes made after this call, so it can all be undone later.