class GrailsTestTransactionInterceptor extends Object
Establishes a rollback only transaction for running a test in.
| Modifiers | Name | Description |
|---|---|---|
protected Map<String, PlatformTransactionManager> |
transactionManagers |
|
protected Map<String, TransactionStatus> |
transactionStatuses |
| Type | Name and description |
|---|---|
static String |
TRANSACTIONAL |
ApplicationContext |
applicationContext |
| Constructor and description |
|---|
GrailsTestTransactionInterceptor(ApplicationContext applicationContext) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
destroy()Rolls back the current transaction. |
|
void |
init()Establishes a transaction. |
|
boolean |
isTransactional(Object test)A test is non transactional if it defines an instance or static property name 'transactional' with a value of false. |
Rolls back the current transaction.
Establishes a transaction.
A test is non transactional if it defines an instance or static property name 'transactional' with
a value of false.