| com.bm.testsuite.BaseTest com.bm.testsuite.PoJoFixture
PoJoFixture | abstract public class PoJoFixture extends BaseTest (Code) | | Supports entity manager and flat file db injection for pojos.
author: Daniel Wiese< Parameters: T - > -the type of the service since: 12.11.2005 |
PoJoFixture | public PoJoFixture(Class[] usedEntityBeans)(Code) | | Constructor.
Parameters: usedEntityBeans - -the used entity bens |
PoJoFixture | public PoJoFixture(Class[] usedEntityBeans, InitialDataSet... initialData)(Code) | | Constructor.
Parameters: usedEntityBeans - -the used entity beans Parameters: initialData - -the inital data to create in the db |
deleteAll | protected void deleteAll(Class<T> clazz)(Code) | | Deletes all rows of the given class in the database.
< Parameters: T - >the tyme of the persistent object Parameters: clazz - the class of of the persistent object all DB instances |
findAll | protected List<T> findAll(Class<T> clazz)(Code) | | Find all rows of the given class in the database.
< Parameters: T - >the tyme of the persistent object Parameters: clazz - the class of of the persistent object all DB instances |
getDataSource | public DataSource getDataSource()(Code) | | Liefert die datasource.
die data source. |
getEntityManager | public EntityManager getEntityManager()(Code) | | Returns a isntance of a EntityManager.
author: Daniel Wiese since: 12.11.2005 - a instance of an entity manager |
persist | protected List<T> persist(List<T> complexObjectGraph)(Code) | | Persists all objects in the database.
< Parameters: T - >the tyme of the persistent object Parameters: complexObjectGraph - th egraph to persist the persisted objects |
setUp | protected void setUp() throws Exception(Code) | | author: Daniel Wiese since: 16.10.2005 See Also: junit.framework.TestCase.setUp |
tearDown | protected void tearDown() throws Exception(Code) | | author: Daniel Wiese since: 16.10.2005 See Also: junit.framework.TestCase.tearDown |
|
|