|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.DataSetTest
public abstract class DataSetTest
Nested Class Summary | |
---|---|
class |
DataSetTest.TableRow
Class to extract data easily from a table row. |
Constructor Summary | |
---|---|
DataSetTest()
|
Method Summary | |
---|---|
org.dbunit.dataset.IDataSet |
getActualDataSet()
|
org.springframework.context.ApplicationContext |
getApplicationContext()
|
abstract String[] |
getApplicationContextPath()
Gets the XML Spring configuration files from which the context will be bootstrapped for the test. |
protected Connection |
getConnection()
Gets the database connection. |
org.dbunit.dataset.ReplacementDataSet |
getDataSet()
|
abstract String |
getDataSetPath()
Gets the path of the XML file in which are defined the data to insert into the database before the running of a test. |
protected DataSource |
getDataSource()
|
protected abstract String |
getDataSourceInjectionBeanId()
Gets the identifier which permits to retrieve the instance of the data source in the injection context. |
int |
getTableIndexFor(org.dbunit.dataset.ITable table,
String columnName,
Object value)
|
int |
getTableIndexForId(org.dbunit.dataset.ITable table,
Object id)
|
DataSetTest.TableRow |
getTableRowFor(org.dbunit.dataset.ITable table,
String columnName,
Object value)
|
List<DataSetTest.TableRow> |
getTableRowsFor(org.dbunit.dataset.ITable table,
String columnName,
Object value)
|
void |
setUp()
|
void |
tearDown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSetTest()
Method Detail |
---|
public void setUp() throws Exception
Exception
protected abstract String getDataSourceInjectionBeanId()
protected DataSource getDataSource()
protected Connection getConnection() throws SQLException
SQLException
public org.dbunit.dataset.ReplacementDataSet getDataSet() throws Exception
Exception
public void tearDown() throws Exception
Exception
public abstract String getDataSetPath()
public abstract String[] getApplicationContextPath()
public org.dbunit.dataset.IDataSet getActualDataSet() throws Exception
Exception
public int getTableIndexFor(org.dbunit.dataset.ITable table, String columnName, Object value) throws Exception
Exception
public DataSetTest.TableRow getTableRowFor(org.dbunit.dataset.ITable table, String columnName, Object value) throws Exception
Exception
public List<DataSetTest.TableRow> getTableRowsFor(org.dbunit.dataset.ITable table, String columnName, Object value) throws Exception
Exception
public int getTableIndexForId(org.dbunit.dataset.ITable table, Object id) throws Exception
Exception
public org.springframework.context.ApplicationContext getApplicationContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |