public class TransactionDbUnitTestExecutionListener extends TestExecutionListenerChain
TestExecutionListener
which provides support for @DatabaseSetup
,
@DatabaseTearDown
and @ExpectedDatabase
annotations and
executed tests within transactions
.
Transactions start before @DatabaseSetup
and end after @DatabaseTearDown
and @ExpectedDatabase
.
TransactionalTestExecutionListener
,
DbUnitTestExecutionListener
Constructor and Description |
---|
TransactionDbUnitTestExecutionListener() |
Modifier and Type | Method and Description |
---|---|
protected Class<?>[] |
getChain()
Returns the chain of
TestExecutionListener classes in the correct order. |
afterTestClass, afterTestMethod, beforeTestClass, beforeTestMethod, createChain, prepareTestInstance
public TransactionDbUnitTestExecutionListener()
protected Class<?>[] getChain()
TestExecutionListenerChain
TestExecutionListener
classes in the correct order.getChain
in class TestExecutionListenerChain
Copyright © 2016. All rights reserved.