public class StatefulAllowedOperationsTests extends BasicStatefulTestClient
========================================================================= Operations allowed in the methods of a stateful SessionBean with container-managed transaction demarcation ========================================================================= Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | constructor | - ______________________|__________________________________________________ | setSessionContext | SessionContext methods: | - getEJBHome | JNDI access to java:comp/env ______________________|__________________________________________________ | ejbCreate | SessionContext methods: ejbRemove | - getEJBHome ejbActivate | - getCallerPrincipal ejbPassivate | - isCallerInRole | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | business method | SessionContext methods: from remote interface | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | afterBegin | SessionContext methods: beforeCompletion | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | afterCompletion | SessionContext methods: | - getEJBHome | - getCallerPrincipal | - isCallerInRole | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
NumberedTestCase.NamedTest, NumberedTestCase.TestSetup, NumberedTestCase.TestTearDownejbHome, ejbObjectejbHandle, ejbHomeHandle, ejbMetaData, ejbPrimaryKey, initialContexttestNamestandardPrefix| Constructor and Description |
|---|
StatefulAllowedOperationsTests() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp()
Sets up the fixture, for example, open a network connection.
|
protected void |
tearDown() |
void |
test01_setSessionContext()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
setSessionContext | SessionContext methods:
| - getEJBHome
| JNDI access to java:comp/env
______________________|__________________________________________________
|
void |
test02_ejbCreate()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getEJBHome
ejbActivate | - getCallerPrincipal
ejbPassivate | - isCallerInRole
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test03_ejbRemove()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getEJBHome
ejbActivate | - getCallerPrincipal
ejbPassivate | - isCallerInRole
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test04_ejbActivate()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getEJBHome
ejbActivate | - getCallerPrincipal
ejbPassivate | - isCallerInRole
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test05_ejbPassivate()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getEJBHome
ejbActivate | - getCallerPrincipal
ejbPassivate | - isCallerInRole
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test06_businessMethod()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
business method | SessionContext methods:
from remote interface | - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test07_afterBegin()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
afterBegin | SessionContext methods:
beforeCompletion | - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test08_beforeCompletion()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
afterBegin | SessionContext methods:
beforeCompletion | - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test09_afterCompletion()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
afterCompletion | SessionContext methods:
| - getEJBHome
| - getCallerPrincipal
| - isCallerInRole
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
cast, processFieldInjections, processSetterInjectionsnamecountTestCases, createTest, createTestName, removePrefix, removePrefix, run, run, runTestMethod, toStringassertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, failprotected void setUp()
throws Exception
StatefulTestClientsetUp in class StatefulTestClientExceptionprotected void tearDown()
throws Exception
tearDown in class NumberedTestCaseExceptionpublic void test01_setSessionContext()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | setSessionContext | SessionContext methods: | - getEJBHome | JNDI access to java:comp/env ______________________|__________________________________________________
public void test02_ejbCreate()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbCreate | SessionContext methods: ejbRemove | - getEJBHome ejbActivate | - getCallerPrincipal ejbPassivate | - isCallerInRole | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test03_ejbRemove()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbCreate | SessionContext methods: ejbRemove | - getEJBHome ejbActivate | - getCallerPrincipal ejbPassivate | - isCallerInRole | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test04_ejbActivate()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbCreate | SessionContext methods: ejbRemove | - getEJBHome ejbActivate | - getCallerPrincipal ejbPassivate | - isCallerInRole | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test05_ejbPassivate()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbCreate | SessionContext methods: ejbRemove | - getEJBHome ejbActivate | - getCallerPrincipal ejbPassivate | - isCallerInRole | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test06_businessMethod()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | business method | SessionContext methods: from remote interface | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test07_afterBegin()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | afterBegin | SessionContext methods: beforeCompletion | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test08_beforeCompletion()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | afterBegin | SessionContext methods: beforeCompletion | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test09_afterCompletion()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | afterCompletion | SessionContext methods: | - getEJBHome | - getCallerPrincipal | - isCallerInRole | - getEJBObject | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.