| com.bm.testsuite.BaseTest com.bm.testsuite.BaseEntityFixture
BaseEntityFixture | abstract public class BaseEntityFixture extends BaseTest (Code) | | This class is the base executes for all entity beans the automated test
cases.
author: Daniel Wiese< Parameters: T - > -the type of the entity bean since: 07.10.2005 |
Method Summary | |
public 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() | public void | testGetterSetter() This test tests the simpe getter-/ setter methods. | public void | testWrite() This test writes n random generated beans into the database. | public 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. |
BaseEntityFixture | public BaseEntityFixture(Class<T> entityToTest)(Code) | | Default constructor.
Parameters: entityToTest - -the entity to test |
BaseEntityFixture | public BaseEntityFixture(Class<T> entityToTest, Generator[] additionalGenerators)(Code) | | Additional constructor.
Parameters: entityToTest - -the entity to test Parameters: additionalGenerators - -a dditional generators (plug in) |
disabled_testWriteWithNullFields | public void disabled_testWriteWithNullFields() throws Exception(Code) | | This test writes n random generated beans into the database - all
nullable fields are setted to null.
throws: Exception - -in an error case |
setUp | protected void setUp() throws Exception(Code) | | See Also: junit.framework.TestCase.setUp |
tearDown | protected void tearDown() throws Exception(Code) | | See Also: junit.framework.TestCase.tearDown |
testGetterSetter | public void testGetterSetter()(Code) | | This test tests the simpe getter-/ setter methods.
|
testWrite | public void testWrite() throws Exception(Code) | | This test writes n random generated beans into the database.
throws: Exception - -in an error case |
testWriteRead | public void testWriteRead() throws Exception(Code) | | 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.
Additionaly the hash-code implementation will be checked
throws: Exception - -in an error case |
|
|