| com.bm.testsuite.BaseTest com.bm.testsuite.BaseSessionBeanFixture
BaseSessionBeanFixture | abstract public class BaseSessionBeanFixture extends BaseTest (Code) | | This is the base class for all JUnit test - testing stateless/statefull
SessionBeans (EJB 3.0 Specification conform).
author: Daniel Wiese< Parameters: T - > -the type of the session bean to test since: 16.10.2005 |
BaseSessionBeanFixture | public BaseSessionBeanFixture(Class<T> sessionBeanToTest, Class[] usedEntityBeans)(Code) | | Constructor.
Parameters: sessionBeanToTest - -the class of the session bean to test Parameters: usedEntityBeans - -the used entity bens |
BaseSessionBeanFixture | public BaseSessionBeanFixture(Class<T> sessionBeanToTest, Class[] usedEntityBeans, InitialDataSet... initialData)(Code) | | Constructor.
Parameters: sessionBeanToTest - -the class of the session bean to test Parameters: usedEntityBeans - -the used entity beans Parameters: initialData - -the inital data to create in the db |
BaseSessionBeanFixture | protected BaseSessionBeanFixture(Class<T> sessionBeanToTest, AbstractIntrospector<T> intro, Class[] usedEntityBeans, InitialDataSet... initialData)(Code) | | Protected Constructor> possible to pass another introspector
Parameters: sessionBeanToTest - -the class of the session bean to test Parameters: intro - -the introspector Parameters: usedEntityBeans - -the used entity bens Parameters: initialData - -the inital data to create in the db |
getBeanClass | public Class<T> getBeanClass()(Code) | | Returns the beanClass.
Returns the beanClass. |
getBeanToTest | public T getBeanToTest()(Code) | | Returns the beanToTest.
Returns the beanToTest. |
getEntityManager | public EntityManager getEntityManager()(Code) | | Returns a isntance of a EntityManager.
author: Daniel Wiese since: 12.11.2005 - a instance of an entity manager |
setInitalDataSets | public void setInitalDataSets(InitialDataSet... initalDataSets)(Code) | | Sets a CSV inital data set to prepopylate the database with data.
Parameters: initalDataSets - the array of initial data sets |
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 |
|
|