public class BMTSingletonAllowedOperationsTests extends BasicSingletonTestClient
========================================================================= Operations allowed in the methods of a singleton SessionBean with bean-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 | - getEJBObject | - getUserTransaction | JNDI access to java:comp/env ______________________|__________________________________________________ | business method | SessionContext methods: from remote interface | - getEJBHome | - getCallerPrincipal | - isCallerInRole | - getEJBObject | - getUserTransaction | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
NumberedTestCase.NamedTest, NumberedTestCase.TestSetup, NumberedTestCase.TestTearDown| Modifier and Type | Field and Description |
|---|---|
protected TimerSync |
timerSync |
ejbHome, ejbObjectejbHandle, ejbHomeHandle, ejbMetaData, ejbPrimaryKey, initialContexttestNamestandardPrefix| Constructor and Description |
|---|
BMTSingletonAllowedOperationsTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
_test05_ejbTimeout() |
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
| - lookup
| JNDI access to java:comp/env
______________________|__________________________________________________
|
void |
test02_ejbCreate()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getEJBHome
| - getEJBObject
| - getUserTransaction
| - getTimerService
| - lookup
| JNDI access to java:comp/env
______________________|__________________________________________________
|
void |
test04_businessMethod()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
business method | SessionContext methods:
from remote interface | - getEJBHome
| - getCallerPrincipal
| - isCallerInRole
| - getEJBObject
| - getUserTransaction
| - getTimerService
| - lookup
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
TODO_test03_ejbRemove()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getEJBHome
| - getEJBObject
| - getUserTransaction
| - getTimerService
| - lookup
| JNDI access to java:comp/env
______________________|__________________________________________________
|
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 TimerSync timerSync
protected void setUp()
throws Exception
SingletonTestClientsetUp in class SingletonTestClientExceptionprotected void tearDown()
throws Exception
tearDown in class NumberedTestCaseExceptionpublic void test01_setSessionContext()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | setSessionContext | SessionContext methods: | - getEJBHome | - lookup | JNDI access to java:comp/env ______________________|__________________________________________________
public void test02_ejbCreate()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbCreate | SessionContext methods: ejbRemove | - getEJBHome | - getEJBObject | - getUserTransaction | - getTimerService | - lookup | JNDI access to java:comp/env ______________________|__________________________________________________
public void TODO_test03_ejbRemove()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbCreate | SessionContext methods: ejbRemove | - getEJBHome | - getEJBObject | - getUserTransaction | - getTimerService | - lookup | JNDI access to java:comp/env ______________________|__________________________________________________
public void test04_businessMethod()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | business method | SessionContext methods: from remote interface | - getEJBHome | - getCallerPrincipal | - isCallerInRole | - getEJBObject | - getUserTransaction | - getTimerService | - lookup | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void _test05_ejbTimeout()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.