|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.dbunit.DatabaseTestCase
org.dbunit.DBTestCase
org.dbunit.JndiBasedDBTestCase
com.silverpeas.components.model.AbstractTestDao
public abstract class AbstractTestDao
| Field Summary | |
|---|---|
protected org.springframework.jdbc.datasource.embedded.EmbeddedDatabase |
datasource
|
| Constructor Summary | |
|---|---|
AbstractTestDao()
|
|
| Method Summary | |
|---|---|
void |
cleanData()
Frees the previously created data in the database. |
void |
configureJNDIDatasource()
Configure the data source from a JNDI context. |
protected org.dbunit.dataset.IDataSet |
getDataSet()
|
protected abstract String |
getDatasetFileName()
|
protected String |
getLookupName()
|
protected abstract String |
getTableCreationFileName()
|
protected String |
getTableCreationScript()
|
protected org.dbunit.operation.DatabaseOperation |
getTearDownOperation()
|
void |
prepareData()
Prepares the data for the tests in the database. |
void |
setUp()
This is called directly when running under JUnit 3. |
static void |
setUpClass()
|
void |
tearDown()
This is called directly when running under JUnit 3. |
static void |
tearDownClass()
|
| Methods inherited from class org.dbunit.JndiBasedDBTestCase |
|---|
getJNDIProperties, newDatabaseTester |
| Methods inherited from class org.dbunit.DBTestCase |
|---|
getConnection |
| Methods inherited from class org.dbunit.DatabaseTestCase |
|---|
closeConnection, getDatabaseTester, getOperationListener, getSetUpOperation, setUpDatabaseConfig |
| Methods inherited from class junit.framework.TestCase |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.springframework.jdbc.datasource.embedded.EmbeddedDatabase datasource
| Constructor Detail |
|---|
public AbstractTestDao()
| Method Detail |
|---|
public static void setUpClass()
throws Exception
Exception
public static void tearDownClass()
throws Exception
Exception
public void tearDown()
throws Exception
tearDown in class org.dbunit.DatabaseTestCaseException - if an error occurs while tearing down the resources.
public void cleanData()
throws Exception
Exception - if an error occurs while cleaning data.
public void setUp()
throws Exception
setUp in class org.dbunit.DatabaseTestCaseException - if an error occurs while setting up the resources required by the tests.
public void prepareData()
throws Exception
Exception - if an error occurs while preparing the data required by the tests.
public void configureJNDIDatasource()
throws Exception
IOException - if an error occurs while communicating with the JNDI context.
NamingException - if the data source cannot be found in the JNDI context.
Exception - if the data source cannot be created.
protected org.dbunit.operation.DatabaseOperation getTearDownOperation()
throws Exception
getTearDownOperation in class org.dbunit.DatabaseTestCaseExceptionprotected String getLookupName()
getLookupName in class org.dbunit.JndiBasedDBTestCase
protected org.dbunit.dataset.IDataSet getDataSet()
throws Exception
getDataSet in class org.dbunit.DatabaseTestCaseExceptionprotected abstract String getDatasetFileName()
protected abstract String getTableCreationFileName()
protected String getTableCreationScript()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||