org.jboss.test.exception
Class ExceptionUnitTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.util.ejb.EJBTestCase (src) 
          extended byorg.jboss.test.exception.ExceptionUnitTestCase

public class ExceptionUnitTestCase
extends EJBTestCase (src)

Test ejb exception propagation

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.util.ejb.EJBTestCase (src)
props
 
Constructor Summary
ExceptionUnitTestCase(java.lang.String name)
           
 
Method Summary
 void setUp()
          Looks up all of the home interfaces and creates the initial data.
static Test suite()
           
 void testApplicationErrorInTx_local()
           
 void testApplicationErrorInTx_remote()
           
 void testApplicationErrorNewTx_local()
           
 void testApplicationErrorNewTx_remote()
           
 void testApplicationErrorNoTx_local()
           
 void testApplicationErrorNoTx_remote()
           
 void testApplicationExceptionInTx_local()
           
 void testApplicationExceptionInTx_remote()
           
 void testApplicationExceptionNewTx_local()
           
 void testApplicationExceptionNewTx_remote()
           
 void testApplicationExceptionNoTx_local()
           
 void testApplicationExceptionNoTx_remote()
           
 void testEJBExceptionInTx_local()
           
 void testEJBExceptionInTx_remote()
           
 void testEJBExceptionNewTx_local()
           
 void testEJBExceptionNewTx_remote()
           
 void testEJBExceptionNoTx_local()
           
 void testEJBExceptionNoTx_remote()
           
 void testRemoteExceptionInTx_remote()
           
 void testRemoteExceptionNewTx_remote()
           
 void testRemoteExceptionNoTx_remote()
           
 void testRuntimeExceptionInTx_local()
           
 void testRuntimeExceptionInTx_remote()
           
 void testRuntimeExceptionNewTx_local()
           
 void testRuntimeExceptionNewTx_remote()
           
 void testRuntimeExceptionNoTx_local()
           
 void testRuntimeExceptionNoTx_remote()
           
 void testSecurityException_local()
           
 void testSecurityException_remote()
           
 void testSessionEjbCreateException()
           
 
Methods inherited from class org.jboss.test.util.ejb.EJBTestCase (src)
getEJBRunnerJndiName, getProps, isServerSide, run, runBare, setProps, setServerSide, setUpEJB, tearDownEJB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUnitTestCase

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

suite

public static Test suite()
                  throws java.lang.Exception
Throws:
java.lang.Exception

setUp

public void setUp()
           throws java.lang.Exception
Looks up all of the home interfaces and creates the initial data. Looking up objects in JNDI is expensive, so it should be done once and cached.

Throws:
java.lang.Exception - if a problem occures while finding the home interfaces, or if an problem occures while createing the initial data

testSessionEjbCreateException

public void testSessionEjbCreateException()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationExceptionInTx_remote

public void testApplicationExceptionInTx_remote()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationErrorInTx_remote

public void testApplicationErrorInTx_remote()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testEJBExceptionInTx_remote

public void testEJBExceptionInTx_remote()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testRuntimeExceptionInTx_remote

public void testRuntimeExceptionInTx_remote()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testRemoteExceptionInTx_remote

public void testRemoteExceptionInTx_remote()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationExceptionNewTx_remote

public void testApplicationExceptionNewTx_remote()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationErrorNewTx_remote

public void testApplicationErrorNewTx_remote()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testEJBExceptionNewTx_remote

public void testEJBExceptionNewTx_remote()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testRuntimeExceptionNewTx_remote

public void testRuntimeExceptionNewTx_remote()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testRemoteExceptionNewTx_remote

public void testRemoteExceptionNewTx_remote()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationExceptionNoTx_remote

public void testApplicationExceptionNoTx_remote()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationErrorNoTx_remote

public void testApplicationErrorNoTx_remote()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testEJBExceptionNoTx_remote

public void testEJBExceptionNoTx_remote()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testRuntimeExceptionNoTx_remote

public void testRuntimeExceptionNoTx_remote()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testRemoteExceptionNoTx_remote

public void testRemoteExceptionNoTx_remote()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testSecurityException_remote

public void testSecurityException_remote()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationExceptionInTx_local

public void testApplicationExceptionInTx_local()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationErrorInTx_local

public void testApplicationErrorInTx_local()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testEJBExceptionInTx_local

public void testEJBExceptionInTx_local()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testRuntimeExceptionInTx_local

public void testRuntimeExceptionInTx_local()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationExceptionNewTx_local

public void testApplicationExceptionNewTx_local()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationErrorNewTx_local

public void testApplicationErrorNewTx_local()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testEJBExceptionNewTx_local

public void testEJBExceptionNewTx_local()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testRuntimeExceptionNewTx_local

public void testRuntimeExceptionNewTx_local()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationExceptionNoTx_local

public void testApplicationExceptionNoTx_local()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testApplicationErrorNoTx_local

public void testApplicationErrorNoTx_local()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testEJBExceptionNoTx_local

public void testEJBExceptionNoTx_local()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testRuntimeExceptionNoTx_local

public void testRuntimeExceptionNoTx_local()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testSecurityException_local

public void testSecurityException_local()
                                 throws java.lang.Exception
Throws:
java.lang.Exception