public abstract class
DAOTest<T extends DataSourceDAO> extends UnitTest<T>¶
DAOTestis base class for testing DAO.
- <T> – The class which implements DataSourceDAO.
Create an instance of
DAOTest. By default, it disable JMOCK features for reducing dependency.
public synchronized void
Initialize the test target for this test-case. A Special piazza common module is constructed during this initialization. We will call the module as a container of our test-case because the
DAOcan only be constructed through
DAOFactory. Moreover, we have to create the database table and insert some SQL for testing because of non-persistence database has been adopted for performing unit-testing.