public abstract class AbstractDBUnitTest extends Object
Modifier and Type | Field and Description |
---|---|
protected static DatabaseType |
CURRENT_DB_TYPE |
Constructor and Description |
---|
AbstractDBUnitTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertDataSet(String expectedDataSetFile,
Connection connection,
String actualTableName,
String sql) |
protected void |
assertDataSet(String expectedDataSetFile,
Connection connection,
String actualTableName,
String sql,
Object... params) |
protected List<DataSource> |
createDataSourceList() |
protected Map<String,DataSource> |
createDataSourceMap(String dataSourceName) |
void |
createSchema() |
protected abstract List<String> |
getDataSetFiles() |
protected abstract List<String> |
getSchemaFiles() |
void |
importDataSet() |
protected static final DatabaseType CURRENT_DB_TYPE
public void createSchema() throws SQLException
SQLException
protected final Map<String,DataSource> createDataSourceMap(String dataSourceName)
protected final List<DataSource> createDataSourceList()
protected void assertDataSet(String expectedDataSetFile, Connection connection, String actualTableName, String sql, Object... params) throws SQLException, org.dbunit.DatabaseUnitException
SQLException
org.dbunit.DatabaseUnitException
protected void assertDataSet(String expectedDataSetFile, Connection connection, String actualTableName, String sql) throws SQLException, org.dbunit.DatabaseUnitException
SQLException
org.dbunit.DatabaseUnitException
Copyright © 2006–2018 TinyGroup. All rights reserved.