org.objectweb.jonas.jtests.clients.entity
Class F_Inherit

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jonas.jtests.util.JTestCase
                    |
                    +--org.objectweb.jonas.jtests.clients.entity.F_Inherit
All Implemented Interfaces:
junit.framework.Test

public class F_Inherit
extends JTestCase

This test check it's possible to use inheritance to develop beans. (The test is essentially do at the beans compilation and beans deployment !!!) Beans used: inherit

Author:
Helene Joanin (jonas team)

Field Summary
protected static UserHome duhome
           
protected static PersonHome phome
           
protected static UserHome uhome
           
 
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
F_Inherit(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          common setUp routine, used for every test.
static junit.framework.Test suite()
           
 void testDerivedUser()
          test that the bean DerivedUser works well
 void testPerson()
          test that the bean Person works well
 void testUser()
          test that the bean User works well
 
Methods inherited from class org.objectweb.jonas.jtests.util.JTestCase
debug, getDBEnv, random, sleep, tearDown, testEmpty, unloadBeans, useBeans
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Field Detail

phome

protected static PersonHome phome

uhome

protected static UserHome uhome

duhome

protected static UserHome duhome
Constructor Detail

F_Inherit

public F_Inherit(java.lang.String name)
Method Detail

setUp

protected void setUp()
Description copied from class: JTestCase
common setUp routine, used for every test.
Overrides:
setUp in class JTestCase

testPerson

public void testPerson()
                throws java.lang.Exception
test that the bean Person works well

testUser

public void testUser()
              throws java.lang.Exception
test that the bean User works well

testDerivedUser

public void testDerivedUser()
                     throws java.lang.Exception
test that the bean DerivedUser works well

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)