| org.objectweb.jonas.jtests.util.JTestCase org.objectweb.jonas.jtests.clients.entity.F_Dass
F_Dass | public class F_Dass extends JTestCase (Code) | | This test suite tests specifics mapping used in some applications
for example, cmr field and cmp field mapped on the same table column
author: Philippe Durieux |
Field Summary | |
protected boolean | isInit |
Method Summary | |
public void | _testCreateA2B() This test fails, normally, because:
- setting the cmr field doesn't work because it's also a cmp field. | public void | _testCreateA2BTx() | public static void | main(String args) | protected void | setUp() setup is called before each test case. | public static Test | suite() Run all the tests of this suite. | protected void | tearDown() teardown is called after each test case. | public void | testCreateA() | public void | testCreateB() | public void | testCreateP1P2() Simple example with 2 beans with the same pk and a cmr on this pk. | public void | testCreateP3() Complex example of beans with cmr mapped on fields of the primary key. |
isInit | protected boolean isInit(Code) | | |
_testCreateA2B | public void _testCreateA2B() throws Exception(Code) | | This test fails, normally, because:
- setting the cmr field doesn't work because it's also a cmp field.
- the cmp field is not changed, so this means that the cmr field is readonly.
Jonas should throw an exception when we try to modify this kind of cmr field.
|
setUp | protected void setUp()(Code) | | setup is called before each test case.
If not initialized, load the dass bean and lookup the Home.
|
suite | public static Test suite()(Code) | | Run all the tests of this suite.
|
tearDown | protected void tearDown() throws Exception(Code) | | teardown is called after each test case.
Notes for debugging :
To see DataBase state after a test is passed :
Replace the cleanall() by sync(false).
|
testCreateP1P2 | public void testCreateP1P2() throws Exception(Code) | | Simple example with 2 beans with the same pk and a cmr on this pk.
looks like a bean mapped on 2 tables.
|
testCreateP3 | public void testCreateP3() throws Exception(Code) | | Complex example of beans with cmr mapped on fields of the primary key.
Note that the primary key is composite.
|
|
|