|
||||||||||
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.BaseEntityFixture<T>
T
- -
the type of the entity beanpublic abstract class BaseEntityFixture<T>
This class is the base executes for all entity beans the automated test cases.
Field Summary |
---|
Fields inherited from class org.jmock.core.MockObjectSupportTestCase |
---|
ANYTHING, NOT_NULL, NULL |
Constructor Summary | |
---|---|
BaseEntityFixture(java.lang.Class<T> entityToTest)
Default constructor. |
|
BaseEntityFixture(java.lang.Class<T> entityToTest,
Generator[] additionalGenerators)
Additional constructor. |
|
BaseEntityFixture(java.lang.Class<T> entityToTest,
Generator<?>[] additionalGenerators,
java.lang.Class<?>[] referencedEntities)
Additional constructor. |
Method Summary | |
---|---|
void |
disabled_testWriteWithNullFields()
This test writes n random generated beans into the database - all nullable fields are setted to null. |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testGetterSetter()
This test tests the simpe getter-/ setter methods. |
void |
testWrite()
This test writes n random generated beans into the database. |
void |
testWriteRead()
This test writes n random generated beans into the database Reads all beans agin form the database and test if the reded beans are equal 1) by introspectin all persistent fields 2) by callung the eqals method. |
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 BaseEntityFixture(java.lang.Class<T> entityToTest)
entityToTest
- -
the entity to testpublic BaseEntityFixture(java.lang.Class<T> entityToTest, Generator[] additionalGenerators)
entityToTest
- -
the entity to testadditionalGenerators
- -a dditional generators (plug in)public BaseEntityFixture(java.lang.Class<T> entityToTest, Generator<?>[] additionalGenerators, java.lang.Class<?>[] referencedEntities)
entityToTest
- -
the entity to testadditionalGenerators
- -additional generators (plug in)referencedEntities
- referenced persitence classesMethod Detail |
---|
protected 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 void testWrite() throws java.lang.Exception
java.lang.Exception
- -
in an error casepublic void testGetterSetter()
public void disabled_testWriteWithNullFields() throws java.lang.Exception
java.lang.Exception
- -
in an error casepublic void testWriteRead() throws java.lang.Exception
java.lang.Exception
- -
in an error case
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |