com.github.springtestdbunit
Class DbUnitRule.DbUnitTestContextAdapter

java.lang.Object
  extended by com.github.springtestdbunit.DbUnitRule.DbUnitTestContextAdapter
Enclosing class:
DbUnitRule

protected class DbUnitRule.DbUnitTestContextAdapter
extends Object


Constructor Summary
DbUnitRule.DbUnitTestContextAdapter(org.junit.runners.model.FrameworkMethod method, Object target)
           
 
Method Summary
 org.dbunit.database.IDatabaseConnection getConnection()
          Returns the IDatabaseConnection that should be used when performing database setup and teardown.
 DataSetLoader getDataSetLoader()
          Returns the DataSetLoader that should be used to load IDataSets.
 Class<?> getTestClass()
          Returns the class that is under test.
 Throwable getTestException()
          Returns any exception that was thrown during the test or null if no test exception occurred.
 Method getTestMethod()
          Returns the method that is under test.
 void setTestException(Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbUnitRule.DbUnitTestContextAdapter

public DbUnitRule.DbUnitTestContextAdapter(org.junit.runners.model.FrameworkMethod method,
                                           Object target)
Method Detail

getConnection

public org.dbunit.database.IDatabaseConnection getConnection()
Returns the IDatabaseConnection that should be used when performing database setup and teardown.

Returns:
The connection

getDataSetLoader

public DataSetLoader getDataSetLoader()
Returns the DataSetLoader that should be used to load IDataSets.

Returns:
The dataset loader

getTestClass

public Class<?> getTestClass()
Returns the class that is under test.

Returns:
The class under test

getTestMethod

public Method getTestMethod()
Returns the method that is under test.

Returns:
The method under test

getTestException

public Throwable getTestException()
Returns any exception that was thrown during the test or null if no test exception occurred.

Returns:
the test exception or null

setTestException

public void setTestException(Throwable e)


Copyright © 2012. All Rights Reserved.