public class BmpAllowedOperationsTests extends BasicBmpTestClient
========================================================================= Operations allowed in the methods of an entity bean ========================================================================= Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | constructor | - ______________________|__________________________________________________ | setEntityContext | EntityContext methods: unsetEntityContext | - getEJBHome | JNDI access to java:comp/env ______________________|__________________________________________________ | ejbCreate | EntityContext methods: | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | ejbPostCreate | EntityContext methods: | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | ejbRemove | EntityContext methods: | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | ejbFind* | EntityContext methods: ejbSelect* | - getEJBHome ejbHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | ejbSelectInEntity* | EntityContext methods: | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | ejbActivate | EntityContext methods: ejbPassivate | - getEJBHome | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env ______________________|__________________________________________________ | ejbLoad | EntityContext methods: ejbStore | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________ | business method | EntityContext methods: from remote interface | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | 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 |
|---|
BmpAllowedOperationsTests() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp()
Sets up the fixture, for example, open a network connection.
|
protected void |
tearDown() |
void |
test01_setEntityContext()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
setEntityContext | EntityContext methods:
unsetEntityContext | - getEJBHome
| JNDI access to java:comp/env
______________________|__________________________________________________
|
void |
test03_ejbCreate()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | EntityContext methods:
| - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test04_ejbPostCreate()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbPostCreate | EntityContext methods:
| - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| - getPrimaryKey
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test05_ejbRemove()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbRemove | EntityContext methods:
| - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| - getPrimaryKey
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test06_ejbFind()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbFind* | EntityContext methods:
ejbSelect* | - getEJBHome
ejbHome | - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test08_ejbHome()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbFind* | EntityContext methods:
ejbSelect* | - getEJBHome
ejbHome | - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test10_ejbActivate()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbActivate | EntityContext methods:
ejbPassivate | - getEJBHome
| - getEJBObject
| - getPrimaryKey
| JNDI access to java:comp/env
______________________|__________________________________________________
|
void |
test11_ejbPassivate()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbActivate | EntityContext methods:
ejbPassivate | - getEJBHome
| - getEJBObject
| - getPrimaryKey
| JNDI access to java:comp/env
______________________|__________________________________________________
|
void |
test12_ejbLoad()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbLoad | EntityContext methods:
ejbStore | - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| - getPrimaryKey
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test13_ejbStore()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbLoad | EntityContext methods:
ejbStore | - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| - getPrimaryKey
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
test14_businessMethod()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
business method | EntityContext methods:
from remote interface | - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| - getPrimaryKey
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
|
void |
TODO_test02_unsetEntityContext()
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
setEntityContext | EntityContext methods:
unsetEntityContext | - getEJBHome
| JNDI access to java:comp/env
______________________|__________________________________________________
|
namecountTestCases, 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
BmpTestClientsetUp in class BmpTestClientExceptionprotected void tearDown()
throws Exception
tearDown in class BmpTestClientExceptionpublic void test01_setEntityContext()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | setEntityContext | EntityContext methods: unsetEntityContext | - getEJBHome | JNDI access to java:comp/env ______________________|__________________________________________________
public void TODO_test02_unsetEntityContext()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | setEntityContext | EntityContext methods: unsetEntityContext | - getEJBHome | JNDI access to java:comp/env ______________________|__________________________________________________
public void test03_ejbCreate()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbCreate | EntityContext methods: | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test04_ejbPostCreate()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbPostCreate | EntityContext methods: | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test05_ejbRemove()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbRemove | EntityContext methods: | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test06_ejbFind()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbFind* | EntityContext methods: ejbSelect* | - getEJBHome ejbHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test08_ejbHome()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbFind* | EntityContext methods: ejbSelect* | - getEJBHome ejbHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test10_ejbActivate()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbActivate | EntityContext methods: ejbPassivate | - getEJBHome | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env ______________________|__________________________________________________
public void test11_ejbPassivate()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbActivate | EntityContext methods: ejbPassivate | - getEJBHome | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env ______________________|__________________________________________________
public void test12_ejbLoad()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbLoad | EntityContext methods: ejbStore | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test13_ejbStore()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbLoad | EntityContext methods: ejbStore | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
public void test14_businessMethod()
Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | business method | EntityContext methods: from remote interface | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.