Class CmpAllowedOperationsTests

All Implemented Interfaces:
junit.framework.Test

public class CmpAllowedOperationsTests extends BasicCmpTestClient
[9] Should be run as the nineth test suite of the BasicCmpTestClients
 =========================================================================
 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
 ______________________|__________________________________________________
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.openejb.test.NumberedTestCase

    NumberedTestCase.NamedTest, NumberedTestCase.TestSetup, NumberedTestCase.TestTearDown
  • Field Summary

    Fields inherited from class org.apache.openejb.test.entity.cmp.BasicCmpTestClient

    ejbHome, ejbObject

    Fields inherited from class org.apache.openejb.test.entity.cmp.CmpTestClient

    ejbHandle, ejbHomeHandle, ejbMetaData, ejbPrimaryKey, initialContext

    Fields inherited from class org.apache.openejb.test.NamedTestCase

    testName

    Fields inherited from class org.apache.openejb.test.NumberedTestCase

    standardPrefix
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Sets up the fixture, for example, open a network connection.
    protected void
     
    void
    Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | setEntityContext | EntityContext methods: unsetEntityContext | - getEJBHome | JNDI access to java:comp/env ______________________|__________________________________________________
    void
    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
    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
    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
    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
    Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbActivate | EntityContext methods: ejbPassivate | - getEJBHome | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env ______________________|__________________________________________________
    void
    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
    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
    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
    Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | setEntityContext | EntityContext methods: unsetEntityContext | - getEJBHome | JNDI access to java:comp/env ______________________|__________________________________________________
    void
    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
    Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbSelectInEntity* | EntityContext methods: | - getEJBHome | - getCallerPrincipal | - getRollbackOnly | - isCallerInRole | - setRollbackOnly | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env | Resource manager access | Enterprise bean access ______________________|__________________________________________________
    void
    Bean method | Bean method can perform the following operations ______________________|__________________________________________________ | ejbActivate | EntityContext methods: ejbPassivate | - getEJBHome | - getEJBObject | - getPrimaryKey | JNDI access to java:comp/env ______________________|__________________________________________________

    Methods inherited from class org.apache.openejb.test.NamedTestCase

    name

    Methods inherited from class org.apache.openejb.test.NumberedTestCase

    countTestCases, createTest, createTestName, removePrefix, removePrefix, run, run, runTestMethod, toString

    Methods inherited from class org.junit.Assert

    assertArrayEquals, 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, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CmpAllowedOperationsTests

      public CmpAllowedOperationsTests()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Description copied from class: CmpTestClient
      Sets up the fixture, for example, open a network connection. This method is called before a test is executed.
      Overrides:
      setUp in class CmpTestClient
      Throws:
      Exception
    • tearDown

      protected void tearDown() throws Exception
      Overrides:
      tearDown in class CmpTestClient
      Throws:
      Exception
    • test01_setEntityContext

      public void test01_setEntityContext()
       Bean method           | Bean method can perform the following operations
       ______________________|__________________________________________________
       |
       setEntityContext      |  EntityContext methods:
       unsetEntityContext    |     - getEJBHome
       |  JNDI access to java:comp/env
       ______________________|__________________________________________________
       
    • TODO_test02_unsetEntityContext

      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
       ______________________|__________________________________________________
       
    • test03_ejbCreate

      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
       ______________________|__________________________________________________
       
    • test04_ejbPostCreate

      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
       ______________________|__________________________________________________
       
    • test05_ejbRemove

      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
       ______________________|__________________________________________________
       
    • TODO_test07_ejbSelect

      public void TODO_test07_ejbSelect()
       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
       ______________________|__________________________________________________
       
    • test08_ejbHome

      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
       ______________________|__________________________________________________
       
    • TODO_test09_ejbSelectInEntity

      public void TODO_test09_ejbSelectInEntity()
       Bean method           | Bean method can perform the following operations
       ______________________|__________________________________________________
       |
       ejbSelectInEntity*    |  EntityContext methods:
       |     - getEJBHome
       |     - getCallerPrincipal
       |     - getRollbackOnly
       |     - isCallerInRole
       |     - setRollbackOnly
       |     - getEJBObject
       |     - getPrimaryKey
       |  JNDI access to java:comp/env
       |  Resource manager access
       |  Enterprise bean access
       ______________________|__________________________________________________
       
    • test10_ejbActivate

      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
       ______________________|__________________________________________________
       
    • TODO_test11_ejbPassivate

      public void TODO_test11_ejbPassivate()
       Bean method           | Bean method can perform the following operations
       ______________________|__________________________________________________
       |
       ejbActivate           |  EntityContext methods:
       ejbPassivate          |     - getEJBHome
       |     - getEJBObject
       |     - getPrimaryKey
       |  JNDI access to java:comp/env
       ______________________|__________________________________________________
       
    • test12_ejbLoad

      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
       ______________________|__________________________________________________
       
    • test13_ejbStore

      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
       ______________________|__________________________________________________
       
    • test14_businessMethod

      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
       ______________________|__________________________________________________