org.jboss.test.cts.test
Class StatefulSessionLocalUnitTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.JBossTestCase (src) 
          extended byorg.jboss.test.cts.test.StatefulSessionLocalUnitTestCase

public class StatefulSessionLocalUnitTestCase
extends JBossTestCase (src)

Tests of stateful session beans

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.JBossTestCase (src)
delegate, deploymentException, log
 
Constructor Summary
StatefulSessionLocalUnitTestCase(java.lang.String name)
           
 
Method Summary
static Test suite()
           
 void testPassivationByTimeLocal()
          Create a StatefulSessionBean and then force passivation by waiting for 45 seconds.
 
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

StatefulSessionLocalUnitTestCase

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

testPassivationByTimeLocal

public void testPassivationByTimeLocal()
                                throws java.lang.Exception
Create a StatefulSessionBean and then force passivation by waiting for 45 seconds. This relies on a custom container config that specifies container-cache-conf/cache-policy-conf/remover-period=65 container-cache-conf/cache-policy-conf/overager-period=40 container-cache-conf/cache-policy-conf/max-bean-age=30 container-cache-conf/cache-policy-conf/max-bean-life=60

Throws:
java.lang.Exception

suite

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