protected class DbUnitRule.DbUnitTestContextAdapter extends Object
| Constructor and Description |
|---|
DbUnitRule.DbUnitTestContextAdapter(org.junit.runners.model.FrameworkMethod method,
Object target) |
| Modifier and Type | Method and Description |
|---|---|
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. |
DatabaseOperationLookup |
getDatbaseOperationLookup()
Returns the
DatabaseOperationLookup that should be used to lookup database operations. |
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) |
public DbUnitRule.DbUnitTestContextAdapter(org.junit.runners.model.FrameworkMethod method,
Object target)
public org.dbunit.database.IDatabaseConnection getConnection()
IDatabaseConnection that should be used when performing database setup and teardown.public DataSetLoader getDataSetLoader()
DataSetLoader that should be used to load IDataSets.public DatabaseOperationLookup getDatbaseOperationLookup()
DatabaseOperationLookup that should be used to lookup database operations.public Class<?> getTestClass()
public Method getTestMethod()
public Throwable getTestException()
public void setTestException(Throwable e)
Copyright © 2013. All Rights Reserved.