Package com.netcetera.girders.dbunit
Class VendorAwareDataSourceDatabaseTester
java.lang.Object
org.dbunit.assertion.SimpleAssert
org.dbunit.AbstractDatabaseTester
org.dbunit.DataSourceDatabaseTester
com.netcetera.girders.dbunit.VendorAwareDataSourceDatabaseTester
- All Implemented Interfaces:
org.dbunit.IDatabaseTester
public class VendorAwareDataSourceDatabaseTester
extends org.dbunit.DataSourceDatabaseTester
A vendor specific data source.
-
Constructor Summary
ConstructorDescriptionVendorAwareDataSourceDatabaseTester
(DataSource dataSource, String connectionAdapterClassName, String schema) Constructor. -
Method Summary
Methods inherited from class org.dbunit.AbstractDatabaseTester
closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setOperationListener, setSchema, setSetUpOperation, setTearDownOperation, toString
Methods inherited from class org.dbunit.assertion.SimpleAssert
assertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, fail
-
Constructor Details
-
VendorAwareDataSourceDatabaseTester
public VendorAwareDataSourceDatabaseTester(DataSource dataSource, String connectionAdapterClassName, String schema) throws ClassNotFoundException Constructor.- Parameters:
dataSource
- dataSourceconnectionAdapterClassName
- connection adapterschema
- the DB schema to use- Throws:
ClassNotFoundException
- is thrown if connection adapter can not be found
-
-
Method Details
-
getConnection
public org.dbunit.database.IDatabaseConnection getConnection() throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException, SQLException- Specified by:
getConnection
in interfaceorg.dbunit.IDatabaseTester
- Overrides:
getConnection
in classorg.dbunit.DataSourceDatabaseTester
- Throws:
NoSuchMethodException
InvocationTargetException
InstantiationException
IllegalAccessException
SQLException
-