org.objectweb.jonas.jtests.clients.exception
Class F_CatcherBMT

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

public class F_CatcherBMT
extends JTestCase

Exception test cases specific for session with bean-managed transaction

Author:
Ph.Coq
See Also:
2.0 table 16 page377

Field Summary
protected static AccountSHome home
           
 
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
F_CatcherBMT(java.lang.String name)
           
 
Method Summary
 AccountS getAccountS(int i)
          return an AccountS
 AccountSHome getHome()
           
static void main(java.lang.String[] args)
           
protected  void setUp()
          common setUp routine, used for every test.
static junit.framework.Test suite()
           
 void testApplicationBMT()
          Test business method throwing an Application exception.
 void testUncheckedBMT()
          Test business method throwing an unchecked exception.
 
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

home

protected static AccountSHome home
Constructor Detail

F_CatcherBMT

public F_CatcherBMT(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

getHome

public AccountSHome getHome()

getAccountS

public AccountS getAccountS(int i)
return an AccountS

testApplicationBMT

public void testApplicationBMT()
                        throws java.lang.Exception
Test business method throwing an Application exception. It must be caught by the client. Spec 2.0 page 377 (table16)

testUncheckedBMT

public void testUncheckedBMT()
                      throws java.lang.Exception
Test business method throwing an unchecked exception. The client must receive RemoteException See EJB2.0 specs page 377 (table 16)

suite

public static junit.framework.Test suite()

main

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