@SpecVersion(spec="cdi",
version="2.0-EDR2")
public class EJBRequestContextTest
extends AbstractTest
beanManager| Constructor and Description |
|---|
EJBRequestContextTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.EnterpriseArchive |
createEjbArchive() |
static org.jboss.shrinkwrap.api.spec.EnterpriseArchive |
createTestArchive() |
void |
testRequestScopeActiveDuringAsyncCallToEjb() |
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 |
testRequestScopeActiveDuringRemoteCallToEjb() |
void |
testRequestScopeDestroyedAfterCallToEjbTimeoutMethod()
The request context is destroyed after the remote method invocation, timeout or message delivery completes.
|
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches@Deployment(name="TEST",
order=1)
public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createTestArchive()
@Deployment(name="REMOTE_EJB",
order=2,
testable=false)
public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createEjbArchive()
@OperateOnDeployment(value="TEST")
@SpecAssertion(section="request_context_ee",
id="gc")
public void testRequestScopeActiveDuringCallToEjbTimeoutMethod()
throws Exception
Exception@OperateOnDeployment(value="TEST")
@SpecAssertion(section="request_context_ee",
id="hc")
public void testRequestScopeDestroyedAfterCallToEjbTimeoutMethod()
throws Exception
Exception@OperateOnDeployment(value="TEST")
@SpecAssertion(section="request_context_ee",id="ga") @SpecAssertion(section="request_context_ee",id="ha")
public void testRequestScopeActiveDuringRemoteCallToEjb()
throws Exception
ExceptionCopyright © 2008–2016 CDI TCK. All rights reserved.