@EachBean(value=SynchronousTransactionManager.class) @Requires(classes=io.micronaut.test.transaction.TestTransactionInterceptor.class) public class DefaultTestTransactionInterceptor extends java.lang.Object implements io.micronaut.test.transaction.TestTransactionInterceptor
io.micronaut.test.annotation.MicronautTest#transactional()
handling.Modifier | Constructor and Description |
---|---|
protected |
DefaultTestTransactionInterceptor(SynchronousTransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
commit() |
void |
rollback() |
protected DefaultTestTransactionInterceptor(SynchronousTransactionManager transactionManager)
transactionManager
- The transaction manager.public void begin()
begin
in interface io.micronaut.test.transaction.TestTransactionInterceptor
public void commit()
commit
in interface io.micronaut.test.transaction.TestTransactionInterceptor
public void rollback()
rollback
in interface io.micronaut.test.transaction.TestTransactionInterceptor