org.jboss.test.txtimer.test
Class EntityBeanTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.JBossTestCase (src) 
          extended byorg.jboss.test.txtimer.test.EntityBeanTestCase

public class EntityBeanTestCase
extends JBossTestCase (src)

Test the Tx timer service with an Entity.

Since:
07-Apr-2004
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.JBossTestCase (src)
delegate, deploymentException, log
 
Constructor Summary
EntityBeanTestCase(java.lang.String name)
           
 
Method Summary
static TestSuite suite()
           
 void testEjbTimeoutCallerPrincipal()
          Test that ejbTimeout see the container's default principal
 void testInstanceAsscociation()
          Test that ejbTimeout is called once on each instance
 void testRetryAfterRollback()
          Throw a RuntimeException in ejbTimeout, the timer should retry the invocation at least once
 void testReturnTimerHandle()
          The TimerHandle sould not pass through the remote interface
 void testRollbackAfterCancel()
          Cancel the timer and rollback the transaction, the timer cancel should be rolled back as well
 void testRollbackAfterCreate()
          Create the timer and rollback the transaction, the timer create should be rolled back as well
 void testSingleEventDuration()
          Test that ejbTimeout is called
 
Methods inherited from class org.jboss.test.JBossTestCase (src)
deploy, flushAuthCache, flushAuthCache, getBeanCount, getDeployerName, getDeploySetup, getDeployURL, getInitialContext, getIterationCount, getJndiInitFactory, getJndiURL, getLog, getResourceURL, getServer, getServerHost, getThreadCount, initDelegate, invoke, restartDBPool, sleep, testServerFound, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityBeanTestCase

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

suite

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

testSingleEventDuration

public void testSingleEventDuration()
                             throws java.lang.Exception
Test that ejbTimeout is called

Throws:
java.lang.Exception

testInstanceAsscociation

public void testInstanceAsscociation()
                              throws java.lang.Exception
Test that ejbTimeout is called once on each instance

Throws:
java.lang.Exception

testEjbTimeoutCallerPrincipal

public void testEjbTimeoutCallerPrincipal()
                                   throws java.lang.Exception
Test that ejbTimeout see the container's default principal

Throws:
java.lang.Exception

testReturnTimerHandle

public void testReturnTimerHandle()
                           throws java.lang.Exception
The TimerHandle sould not pass through the remote interface

Throws:
java.lang.Exception

testRollbackAfterCreate

public void testRollbackAfterCreate()
                             throws java.lang.Exception
Create the timer and rollback the transaction, the timer create should be rolled back as well

Throws:
java.lang.Exception

testRollbackAfterCancel

public void testRollbackAfterCancel()
                             throws java.lang.Exception
Cancel the timer and rollback the transaction, the timer cancel should be rolled back as well

Throws:
java.lang.Exception

testRetryAfterRollback

public void testRetryAfterRollback()
                            throws java.lang.Exception
Throw a RuntimeException in ejbTimeout, the timer should retry the invocation at least once

Throws:
java.lang.Exception