org.jboss.cdi.tck.tests.context.request.ejb
Class EJBRequestContextTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
org.jboss.cdi.tck.tests.context.request.ejb.EJBRequestContextTest
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@SpecVersion(spec="cdi",
version="20091101")
public class EJBRequestContextTest- extends AbstractTest
EJB and related tests with the built-in request context.
Clarification for request context lifecycle during remote method invocation of EJB is required - see CDI-180.
- Author:
- David Allen, Martin Kouba
| Fields inherited from class org.jboss.arquillian.testng.Arquillian |
ARQUILLIAN_DATA_PROVIDER |
| Methods inherited from class org.jboss.cdi.tck.AbstractTest |
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches |
| Methods inherited from class org.jboss.arquillian.testng.Arquillian |
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EJBRequestContextTest
public EJBRequestContextTest()
createTestArchive
@Deployment(name="TEST",
order=1)
public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createTestArchive()
createEjbArchive
@Deployment(name="REMOTE_EJB",
order=2,
testable=false)
public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createEjbArchive()
testRequestScopeActiveDuringCallToEjbTimeoutMethod
@OperateOnDeployment(value="TEST")
@SpecAssertion(section="request_context",
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
@OperateOnDeployment(value="TEST")
@SpecAssertion(section="request_context",
id="hc")
public void testRequestScopeDestroyedAfterCallToEjbTimeoutMethod()
throws Exception
- The request context is destroyed after the remote method invocation, timeout or message delivery completes.
- Throws:
Exception
testRequestScopeActiveDuringRemoteCallToEjb
@OperateOnDeployment(value="TEST")
@SpecAssertions(value={@SpecAssertion(section="request_context",id="ga"),@SpecAssertion(section="request_context",id="ha")})
public void testRequestScopeActiveDuringRemoteCallToEjb()
throws Exception
- Throws:
Exception
testRequestScopeActiveDuringAsyncCallToEjb
@OperateOnDeployment(value="TEST")
@SpecAssertions(value={@SpecAssertion(section="request_context",id="gb"),@SpecAssertion(section="request_context",id="hb")})
public void testRequestScopeActiveDuringAsyncCallToEjb()
throws Exception
- Throws:
Exception
Copyright © 2008-2013 Seam Framework. All Rights Reserved.