com.github.springtestdbunit
Class TransactionDbUnitTestExecutionListener

java.lang.Object
  extended by com.github.springtestdbunit.TestExecutionListenerChain
      extended by com.github.springtestdbunit.TransactionDbUnitTestExecutionListener
All Implemented Interfaces:
org.springframework.test.context.TestExecutionListener

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.

Author:
Phillip Webb
See Also:
TransactionalTestExecutionListener, DbUnitTestExecutionListener

Constructor Summary
TransactionDbUnitTestExecutionListener()
           
 
Method Summary
protected  Class<?>[] getChain()
          Returns the chain of TestExecutionListener classes in the correct order.
 
Methods inherited from class com.github.springtestdbunit.TestExecutionListenerChain
afterTestClass, afterTestMethod, beforeTestClass, beforeTestMethod, createChain, prepareTestInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionDbUnitTestExecutionListener

public TransactionDbUnitTestExecutionListener()
Method Detail

getChain

protected Class<?>[] getChain()
Description copied from class: TestExecutionListenerChain
Returns the chain of TestExecutionListener classes in the correct order.

Specified by:
getChain in class TestExecutionListenerChain
Returns:
The chain


Copyright © 2012. All Rights Reserved.