|
||||||||||
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.jmock.core.VerifyingTestCase
org.jmock.core.MockObjectSupportTestCase
org.jmock.MockObjectTestCase
com.bm.testsuite.BaseTest
com.bm.testsuite.BaseSessionBeanFixture<T>
T
- -
the type of the session bean to testpublic abstract class BaseSessionBeanFixture<T>
This is the base class for all JUnit test - testing stateless/statefull SessionBeans (EJB 3.0 Specification conform).
Field Summary |
---|
Fields inherited from class org.jmock.core.MockObjectSupportTestCase |
---|
ANYTHING, NOT_NULL, NULL |
Constructor Summary | |
---|---|
|
BaseSessionBeanFixture(java.lang.Class<T> sessionBeanToTest,
java.lang.Class<?>[] usedEntityBeans)
Constructor. |
|
BaseSessionBeanFixture(java.lang.Class<T> sessionBeanToTest,
java.lang.Class<?>[] usedEntityBeans,
InitialDataSet... initialData)
Constructor. |
protected |
BaseSessionBeanFixture(java.lang.Class<T> sessionBeanToTest,
IIntrospector<T> intro,
java.lang.Class<?>[] usedEntityBeans,
InitialDataSet... initialData)
Protected Constructor> possible to pass another introspector |
Method Summary | |
---|---|
java.lang.Class<T> |
getBeanClass()
Returns the beanClass. |
T |
getBeanToTest()
Returns the beanToTest. |
javax.persistence.EntityManager |
getEntityManager()
Returns a isntance of a EntityManager. |
SessionBeanFactory<T> |
getSbFactory()
Returns the sbFactory. |
void |
setInitalDataSets(InitialDataSet... initalDataSets)
Sets a CSV inital data set to prepopylate the database with data. |
protected void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class com.bm.testsuite.BaseTest |
---|
assertCollectionsEqual, assertFalse, assertFalse, assertInstanceOf, assertInstanceOf, setValueForField, testNothing |
Methods inherited from class org.jmock.MockObjectTestCase |
---|
atLeastOnce, defaultMockNameForType, mock, mock, never, newCoreMock, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException |
Methods inherited from class org.jmock.core.MockObjectSupportTestCase |
---|
and, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, isA, newDummy, newDummy, newDummy, not, or, same, stringContains |
Methods inherited from class org.jmock.core.VerifyingTestCase |
---|
registerToVerify, runBare, unregisterToVerify, verify |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BaseSessionBeanFixture(java.lang.Class<T> sessionBeanToTest, java.lang.Class<?>[] usedEntityBeans, InitialDataSet... initialData)
sessionBeanToTest
- -
the class of the session bean to testusedEntityBeans
- -
the used entity beansinitialData
- -
the inital data to create in the dbpublic BaseSessionBeanFixture(java.lang.Class<T> sessionBeanToTest, java.lang.Class<?>[] usedEntityBeans)
sessionBeanToTest
- -
the class of the session bean to testusedEntityBeans
- -
the used entity bensprotected BaseSessionBeanFixture(java.lang.Class<T> sessionBeanToTest, IIntrospector<T> intro, java.lang.Class<?>[] usedEntityBeans, InitialDataSet... initialData)
sessionBeanToTest
- -
the class of the session bean to testintro
- -
the introspectorusedEntityBeans
- -
the used entity bensinitialData
- -
the inital data to create in the dbMethod Detail |
---|
public void setInitalDataSets(InitialDataSet... initalDataSets)
initalDataSets
- the array of initial data setsprotected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
TestCase.setUp()
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
TestCase.tearDown()
public java.lang.Class<T> getBeanClass()
public T getBeanToTest()
public javax.persistence.EntityManager getEntityManager()
public SessionBeanFactory<T> getSbFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |