org.jboss.jsr299.tck.tests.context.request.ejb
Class EJBRequestContextTest

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.jboss.jsr299.tck.AbstractJSR299Test
          extended by org.jboss.jsr299.tck.tests.context.request.ejb.EJBRequestContextTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@Artifact
@Packaging(value=EAR)
@SpecVersion(spec="cdi",
             version="20091101")
public class EJBRequestContextTest
extends AbstractJSR299Test

EJB and related tests with the built-in request context.

Author:
David Allen

Constructor Summary
EJBRequestContextTest()
           
 
Method Summary
 void testRequestScopeActiveDuringCallToEjbTimeoutMethod()
          The request scope is active during any remote method invocation of any EJB bean, during any call to an EJB timeout method and during message delivery to any EJB message driven bean.
 void testRequestScopeDestroyedAfterCallToEjbTimeoutMethod()
          The request context is destroyed after the remote method invocation, timeout or message delivery completes.
 
Methods inherited from class org.jboss.jsr299.tck.AbstractJSR299Test
annotationSetMatches, deserialize, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, handleDeploymentFailure, rawTypeSetMatches, serialize, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.testharness.AbstractTest
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, isInContainer, isThrowablePresent, postCreate, run, setInContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBRequestContextTest

public EJBRequestContextTest()
Method Detail

testRequestScopeActiveDuringCallToEjbTimeoutMethod

@SpecAssertion(section="6.7.1",
               id="gc")
public void testRequestScopeActiveDuringCallToEjbTimeoutMethod()
                                                        throws Exception
The request scope is active during any remote method invocation of any EJB bean, during any call to an EJB timeout method and during message delivery to any EJB message driven bean.

Throws:
Exception

testRequestScopeDestroyedAfterCallToEjbTimeoutMethod

@SpecAssertion(section="6.7.1",
               id="hc")
public void testRequestScopeDestroyedAfterCallToEjbTimeoutMethod()
                                                          throws Exception
The request context is destroyed after the remote method invocation, timeout or message delivery completes.

Throws:
Exception


Copyright © 2008-2012 Seam Framework. All Rights Reserved.