You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2014/07/15 23:55:19 UTC

svn commit: r1610862 [35/44] - in /tomee/tomee/trunk/itests: ./ failover-ejb/ failover-ejb/src/main/java/org/apache/openejb/itest/failover/ejb/ failover/ failover/src/main/java/org/apache/openejb/itest/failover/ failover/src/main/java/org/apache/openej...

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestClient.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestClient.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestClient.java Tue Jul 15 21:55:09 2014
@@ -24,7 +24,7 @@ import java.util.Properties;
 
 public abstract class SingletonTestClient extends TestClient {
 
-    public SingletonTestClient(String name) {
+    public SingletonTestClient(final String name) {
         super("Singleton." + name);
     }
 
@@ -34,7 +34,7 @@ public abstract class SingletonTestClien
      */
     protected void setUp() throws Exception {
 
-        Properties properties = TestManager.getServer().getContextEnvironment();
+        final Properties properties = TestManager.getServer().getContextEnvironment();
         //properties.put(Context.SECURITY_PRINCIPAL, "SINGLETON_test00_CLIENT");
         //properties.put(Context.SECURITY_CREDENTIALS, toString() );
         initialContext = new InitialContext(properties);

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestSuite.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestSuite.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestSuite.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestSuite.java Tue Jul 15 21:55:09 2014
@@ -24,13 +24,13 @@ import org.apache.openejb.test.FilteredT
  */
 public class SingletonTestSuite extends junit.framework.TestCase {
 
-    public SingletonTestSuite(String name) {
+    public SingletonTestSuite(final String name) {
         super(name);
     }
 
 
     public static junit.framework.Test suite() {
-        TestSuite suite = new FilteredTestSuite();
+        final TestSuite suite = new FilteredTestSuite();
         suite.addTest(new SingletonJndiTests());
         suite.addTest(new SingletonPojoRemoteJndiTests());
 

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulLocalTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulLocalTestClient.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulLocalTestClient.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulLocalTestClient.java Tue Jul 15 21:55:09 2014
@@ -18,17 +18,16 @@ package org.apache.openejb.test.stateful
 
 /**
  * [2] Should be run as the second test suite of the BasicStatelessTestClients
- * 
- * 
+ *
  * @version $Rev$ $Date$
  */
 public abstract class AnnotatedFieldInjectionStatefulLocalTestClient extends BasicStatefulLocalTestClient {
 
-    public AnnotatedFieldInjectionStatefulLocalTestClient(String name) {
+    public AnnotatedFieldInjectionStatefulLocalTestClient(final String name) {
         super("AnnotatedFieldInjectionStatefulLocalTestClient." + name);
     }
-    
-    protected void setUp() throws Exception{
+
+    protected void setUp() throws Exception {
         super.setUp();
         processFieldInjections();
     }

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoHomeIntfcTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoHomeIntfcTests.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoHomeIntfcTests.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoHomeIntfcTests.java Tue Jul 15 21:55:09 2014
@@ -18,8 +18,7 @@ package org.apache.openejb.test.stateful
 
 /**
  * [2] Should be run as the second test suite of the BasicStatelessTestClients
- * 
- * 
+ *
  * @version $Rev$ $Date$
  */
 public class AnnotatedFieldInjectionStatefulPojoHomeIntfcTests extends AnnotatedFieldInjectionStatefulTestClient {
@@ -27,20 +26,20 @@ public class AnnotatedFieldInjectionStat
     public AnnotatedFieldInjectionStatefulPojoHomeIntfcTests() {
         super("AnnotatedFieldInjectionStatefulHomeIntfc.");
     }
-    
-    protected void setUp() throws Exception{
+
+    protected void setUp() throws Exception {
         super.setUp();
     }
-    
+
     //===============================
     // Test home interface methods
     //
-    public void test01_create(){
-        try{
+    public void test01_create() {
+        try {
             ejbObject = ejbHome.createObject("BasicStatefulObject");
-            assertNotNull( "The EJBObject is null", ejbObject );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+            assertNotNull("The EJBObject is null", ejbObject);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
     //

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests.java Tue Jul 15 21:55:09 2014
@@ -18,30 +18,29 @@ package org.apache.openejb.test.stateful
 
 /**
  * [2] Should be run as the second test suite of the BasicStatelessTestClients
- * 
- * 
+ *
  * @version $Rev$ $Date$
  */
 public class AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests extends AnnotatedFieldInjectionStatefulLocalTestClient {
 
-    public AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests(){
+    public AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests() {
         super("AnnotatedFieldInjectionStatefulLocalHomeIntfc.");
     }
-    
-    protected void setUp() throws Exception{
+
+    protected void setUp() throws Exception {
         super.setUp();
     }
-    
+
     //===============================
     // Test home interface methods
     //
-    public void test01_create(){
-        try{
+    public void test01_create() {
+        try {
             ejbLocalObject = ejbLocalHome.create("BasicStatefulLocalObject");
-            assertNotNull( "The EJBObject is null", ejbLocalObject );
-        } catch (Exception e){
+            assertNotNull("The EJBObject is null", ejbLocalObject);
+        } catch (final Exception e) {
             fail("Received Exception " + e.getClass() + " : " + e.getMessage());
-        }        
+        }
     }
     //
     // Test home interface methods

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulTestClient.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulTestClient.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulTestClient.java Tue Jul 15 21:55:09 2014
@@ -18,20 +18,19 @@ package org.apache.openejb.test.stateful
 
 /**
  * [2] Should be run as the second test suite of the BasicStatelessTestClients
- * 
- * 
+ *
  * @version $Rev$ $Date$
  */
 public abstract class AnnotatedFieldInjectionStatefulTestClient extends BasicStatefulTestClient {
 
-    public AnnotatedFieldInjectionStatefulTestClient(String name) {
+    public AnnotatedFieldInjectionStatefulTestClient(final String name) {
         super("AnnotatedFieldInjectionStatefulTestClient." + name);
     }
-    
-    protected void setUp() throws Exception{
+
+    protected void setUp() throws Exception {
         super.setUp();
         processFieldInjections();
     }
-    
+
 }
 

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulLocalTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulLocalTestClient.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulLocalTestClient.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulLocalTestClient.java Tue Jul 15 21:55:09 2014
@@ -18,8 +18,7 @@ package org.apache.openejb.test.stateful
 
 /**
  * [2] Should be run as the second test suite of the BasicStatelessTestClients
- * 
- * 
+ *
  * @version $Rev$ $Date$
  */
 public abstract class AnnotatedSetterInjectionStatefulLocalTestClient extends BasicStatefulLocalTestClient {
@@ -27,8 +26,8 @@ public abstract class AnnotatedSetterInj
     public AnnotatedSetterInjectionStatefulLocalTestClient(final String name) {
         super("AnnotatedSetterInjectionStatefulLocalTestClient." + name);
     }
-    
-    protected void setUp() throws Exception{
+
+    protected void setUp() throws Exception {
         super.setUp();
         processSetterInjections();
     }

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoHomeIntfcTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoHomeIntfcTests.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoHomeIntfcTests.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoHomeIntfcTests.java Tue Jul 15 21:55:09 2014
@@ -21,8 +21,7 @@ import javax.ejb.EJB;
 
 /**
  * [2] Should be run as the second test suite of the BasicStatelessTestClients
- * 
- * 
+ *
  * @version $Rev$ $Date$
  */
 public class AnnotatedSetterInjectionStatefulPojoHomeIntfcTests extends AnnotatedSetterInjectionStatefulTestClient {
@@ -30,26 +29,26 @@ public class AnnotatedSetterInjectionSta
     public AnnotatedSetterInjectionStatefulPojoHomeIntfcTests() {
         super("AnnotatedSetterInjectionStatefulHomeIntfc.");
     }
-    
-    protected void setUp() throws Exception{
+
+    protected void setUp() throws Exception {
         super.setUp();
     }
-    
-    @EJB(name="client/tests/stateful/BasicStatefulPojoHome",
-   	     beanInterface=BasicStatefulHome.class)
-    public void setEjbHome(BasicStatefulHome bsEjbHome) {
-    	ejbHome = bsEjbHome;
+
+    @EJB(name = "client/tests/stateful/BasicStatefulPojoHome",
+        beanInterface = BasicStatefulHome.class)
+    public void setEjbHome(final BasicStatefulHome bsEjbHome) {
+        ejbHome = bsEjbHome;
     }
-    
+
     //===============================
     // Test home interface methods
     //
-    public void test01_create(){
-        try{
+    public void test01_create() {
+        try {
             ejbObject = ejbHome.createObject("BasicStatefulObject");
-            assertNotNull( "The EJBObject is null", ejbObject );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+            assertNotNull("The EJBObject is null", ejbObject);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
     //

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests.java Tue Jul 15 21:55:09 2014
@@ -21,36 +21,35 @@ import javax.ejb.EJB;
 
 /**
  * [2] Should be run as the second test suite of the BasicStatelessTestClients
- * 
- * 
+ *
  * @version $Rev$ $Date$
  */
 public class AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests extends AnnotatedSetterInjectionStatefulLocalTestClient {
 
-    public AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests(){
+    public AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests() {
         super("AnnotatedSetterInjectionStatefulLocalHomeIntfc.");
     }
-    
-    protected void setUp() throws Exception{
+
+    protected void setUp() throws Exception {
         super.setUp();
     }
-    
-	@EJB(name="client/tests/stateful/BasicStatefulPojoHomeLocal",
-		 beanInterface = BasicStatefulLocalHome.class)
-    public void setEjbLocalHome(BasicStatefulLocalHome bslEjbHome) {
-    	ejbLocalHome = bslEjbHome;
+
+    @EJB(name = "client/tests/stateful/BasicStatefulPojoHomeLocal",
+        beanInterface = BasicStatefulLocalHome.class)
+    public void setEjbLocalHome(final BasicStatefulLocalHome bslEjbHome) {
+        ejbLocalHome = bslEjbHome;
     }
-    
+
     //===============================
     // Test home interface methods
     //
-    public void test01_create(){
-        try{
+    public void test01_create() {
+        try {
             ejbLocalObject = ejbLocalHome.create("BasicStatefulLocalObject");
-            assertNotNull( "The EJBObject is null", ejbLocalObject );
-        } catch (Exception e){
+            assertNotNull("The EJBObject is null", ejbLocalObject);
+        } catch (final Exception e) {
             fail("Received Exception " + e.getClass() + " : " + e.getMessage());
-        }        
+        }
     }
     //
     // Test home interface methods

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulTestClient.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulTestClient.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulTestClient.java Tue Jul 15 21:55:09 2014
@@ -18,20 +18,19 @@ package org.apache.openejb.test.stateful
 
 /**
  * [2] Should be run as the second test suite of the BasicStatelessTestClients
- * 
- * 
+ *
  * @version $Rev$ $Date$
  */
 public abstract class AnnotatedSetterInjectionStatefulTestClient extends BasicStatefulTestClient {
 
-    public AnnotatedSetterInjectionStatefulTestClient(String name) {
+    public AnnotatedSetterInjectionStatefulTestClient(final String name) {
         super("AnnotatedSetterInjectionStatefulTestClient." + name);
     }
-    
-    protected void setUp() throws Exception{
+
+    protected void setUp() throws Exception {
         super.setUp();
         processSetterInjections();
     }
-    
+
 }
 

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BMTStatefulAllowedOperationsTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BMTStatefulAllowedOperationsTests.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BMTStatefulAllowedOperationsTests.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BMTStatefulAllowedOperationsTests.java Tue Jul 15 21:55:09 2014
@@ -19,60 +19,58 @@ package org.apache.openejb.test.stateful
 import org.apache.openejb.test.object.OperationsPolicy;
 
 /**
- * 
  * [10] Should be run as the nineth test suite of the BasicStatefulTestClients
- * 
+ * <p/>
  * <PRE>
  * =========================================================================
- * Operations allowed in the methods of a stateful SessionBean with 
+ * Operations allowed in the methods of a stateful SessionBean with
  * bean-managed transaction demarcation
  * =========================================================================
- * 
+ * <p/>
  * Bean method           | Bean method can perform the following operations
  * ______________________|__________________________________________________
- *                       |
+ * |
  * constructor           | -
  * ______________________|__________________________________________________
- *                       |
+ * |
  * setSessionContext     |  SessionContext methods:
- *                       |     - getEJBHome
- *                       |  JNDI access to java:comp/env
+ * |     - getEJBHome
+ * |  JNDI access to java:comp/env
  * ______________________|__________________________________________________
- *                       |
+ * |
  * ejbCreate             |  SessionContext methods:
  * ejbRemove             |     - getEJBHome
  * ejbActivate           |     - getCallerPrincipal
- * ejbPassivate          |     - isCallerInRole   
- *                       |     - getEJBObject    
- *                       |     - getUserTransaction
- *                       |  JNDI access to java:comp/env
- *                       |  Resource manager access
- *                       |  Enterprise bean access
+ * ejbPassivate          |     - isCallerInRole
+ * |     - getEJBObject
+ * |     - getUserTransaction
+ * |  JNDI access to java:comp/env
+ * |  Resource manager access
+ * |  Enterprise bean access
  * ______________________|__________________________________________________
- *                       |
+ * |
  * business method       |  SessionContext methods:
- * from remote interface |     - getEJBHome        
- *                       |     - getCallerPrincipal
- *                       |     - isCallerInRole    
- *                       |     - getEJBObject      
- *                       |     - getUserTransaction
- *                       |  JNDI access to java:comp/env
- *                       |  Resource manager access
- *                       |  Enterprise bean access
+ * from remote interface |     - getEJBHome
+ * |     - getCallerPrincipal
+ * |     - isCallerInRole
+ * |     - getEJBObject
+ * |     - getUserTransaction
+ * |  JNDI access to java:comp/env
+ * |  Resource manager access
+ * |  Enterprise bean access
  * ______________________|__________________________________________________
  * </PRE>
- * 
  */
-public class BMTStatefulAllowedOperationsTests extends BasicStatefulTestClient{
+public class BMTStatefulAllowedOperationsTests extends BasicStatefulTestClient {
 
-    public BMTStatefulAllowedOperationsTests(){
+    public BMTStatefulAllowedOperationsTests() {
         super("BMTAllowedOperations.");
     }
 
-    protected void setUp() throws Exception{
+    protected void setUp() throws Exception {
         super.setUp();
-        Object obj = initialContext.lookup("client/tests/stateful/BeanManagedBasicStatefulHome");
-        ejbHome = (BasicStatefulHome)javax.rmi.PortableRemoteObject.narrow( obj, BasicStatefulHome.class);
+        final Object obj = initialContext.lookup("client/tests/stateful/BeanManagedBasicStatefulHome");
+        ejbHome = (BasicStatefulHome) javax.rmi.PortableRemoteObject.narrow(obj, BasicStatefulHome.class);
         ejbObject = ejbHome.createObject("Fifth Bean");
         ejbHandle = ejbObject.getHandle();
         /* These tests will only work if the specified
@@ -82,10 +80,10 @@ public class BMTStatefulAllowedOperation
          * Implement a little application senario to ensure
          * that all methods tested for below have been called
          * by the container.
-         */         
+         */
     }
-    
-    protected void tearDown() throws Exception{
+
+    protected void tearDown() throws Exception {
         ejbObject.remove();
         super.tearDown();
     }
@@ -93,212 +91,217 @@ public class BMTStatefulAllowedOperation
     //=====================================
     // Test EJBContext allowed operations       
     //
+
     /**
      * <PRE>
      * Bean method           | Bean method can perform the following operations
      * ______________________|__________________________________________________
-     *                       |
+     * |
      * setSessionContext     |  SessionContext methods:
-     *                       |     - getEJBHome
-     *                       |  JNDI access to java:comp/env
+     * |     - getEJBHome
+     * |  JNDI access to java:comp/env
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test01_setSessionContext(){
-        try{
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-        
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("setSessionContext");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test01_setSessionContext() {
+        try {
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("setSessionContext");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
+
     /**
      * <PRE>
      * Bean method           | Bean method can perform the following operations
      * ______________________|__________________________________________________
-     *                       |
+     * |
      * ejbCreate             |  SessionContext methods:
      * ejbRemove             |     - getEJBHome
      * ejbActivate           |     - getCallerPrincipal
-     * ejbPassivate          |     - isCallerInRole   
-     *                       |     - getEJBObject    
-     *                       |     - getUserTransaction
-     *                       |  JNDI access to java:comp/env
-     *                       |  Resource manager access
-     *                       |  Enterprise bean access
+     * ejbPassivate          |     - isCallerInRole
+     * |     - getEJBObject
+     * |     - getUserTransaction
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test02_ejbCreate(){             
-        try{
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.Context_getUserTransaction );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbCreate");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test02_ejbCreate() {
+        try {
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.Context_getUserTransaction);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("ejbCreate");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
+
     /**
      * <PRE>
      * Bean method           | Bean method can perform the following operations
      * ______________________|__________________________________________________
-     *                       |
+     * |
      * ejbCreate             |  SessionContext methods:
      * ejbRemove             |     - getEJBHome
      * ejbActivate           |     - getCallerPrincipal
-     * ejbPassivate          |     - isCallerInRole   
-     *                       |     - getEJBObject    
-     *                       |     - getUserTransaction
-     *                       |  JNDI access to java:comp/env
-     *                       |  Resource manager access
-     *                       |  Enterprise bean access
+     * ejbPassivate          |     - isCallerInRole
+     * |     - getEJBObject
+     * |     - getUserTransaction
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test03_ejbRemove(){
-        try{
+    public void test03_ejbRemove() {
+        try {
         /* TO DO:  This test needs unique functionality to work */
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.Context_getUserTransaction );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbRemove");
-    
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.Context_getUserTransaction);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("ejbRemove");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
+
     /**
      * <PRE>
      * Bean method           | Bean method can perform the following operations
      * ______________________|__________________________________________________
-     *                       |
+     * |
      * ejbCreate             |  SessionContext methods:
      * ejbRemove             |     - getEJBHome
      * ejbActivate           |     - getCallerPrincipal
-     * ejbPassivate          |     - isCallerInRole   
-     *                       |     - getEJBObject    
-     *                       |     - getUserTransaction
-     *                       |  JNDI access to java:comp/env
-     *                       |  Resource manager access
-     *                       |  Enterprise bean access
+     * ejbPassivate          |     - isCallerInRole
+     * |     - getEJBObject
+     * |     - getUserTransaction
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test04_ejbActivate(){             
-        try{
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.Context_getUserTransaction );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbActivate");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test04_ejbActivate() {
+        try {
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.Context_getUserTransaction);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("ejbActivate");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
+
     /**
      * <PRE>
      * Bean method           | Bean method can perform the following operations
      * ______________________|__________________________________________________
-     *                       |
+     * |
      * ejbCreate             |  SessionContext methods:
      * ejbRemove             |     - getEJBHome
      * ejbActivate           |     - getCallerPrincipal
-     * ejbPassivate          |     - isCallerInRole   
-     *                       |     - getEJBObject    
-     *                       |     - getUserTransaction
-     *                       |  JNDI access to java:comp/env
-     *                       |  Resource manager access
-     *                       |  Enterprise bean access
+     * ejbPassivate          |     - isCallerInRole
+     * |     - getEJBObject
+     * |     - getUserTransaction
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test05_ejbPassivate(){             
-        try{
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.Context_getUserTransaction );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbPassivate");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test05_ejbPassivate() {
+        try {
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.Context_getUserTransaction);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("ejbPassivate");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
-    
+
     /**
      * <PRE>
      * Bean method           | Bean method can perform the following operations
      * ______________________|__________________________________________________
-     *                       |
+     * |
      * business method       |  SessionContext methods:
      * from remote interface |     - getEJBHome
-     *                       |     - getCallerPrincipal
-     *                       |     - isCallerInRole
-     *                       |     - getEJBObject
-     *                       |     - getUserTransaction
-     *                       |  JNDI access to java:comp/env
-     *                       |  Resource manager access
-     *                       |  Enterprise bean access
+     * |     - getCallerPrincipal
+     * |     - isCallerInRole
+     * |     - getEJBObject
+     * |     - getUserTransaction
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test06_businessMethod(){
-        try{
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.Context_getUserTransaction );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-    
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("businessMethod");
-    
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test06_businessMethod() {
+        try {
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.Context_getUserTransaction);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("businessMethod");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
     //

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalTestClient.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalTestClient.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalTestClient.java Tue Jul 15 21:55:09 2014
@@ -19,17 +19,16 @@ package org.apache.openejb.test.stateful
 import javax.ejb.EJB;
 
 /**
- * 
  * @version $Rev$ $Date$
  */
 public abstract class BasicStatefulLocalTestClient extends StatefulTestClient {
-    
-	@EJB(name="client/tests/stateful/BasicStatefulPojoHomeLocal",
-	     beanInterface = BasicStatefulLocalHome.class)
-	protected BasicStatefulLocalHome ejbLocalHome = null;
-	protected BasicStatefulLocalObject ejbLocalObject = null;
 
-    public BasicStatefulLocalTestClient(String name){
+    @EJB(name = "client/tests/stateful/BasicStatefulPojoHomeLocal",
+        beanInterface = BasicStatefulLocalHome.class)
+    protected BasicStatefulLocalHome ejbLocalHome = null;
+    protected BasicStatefulLocalObject ejbLocalObject = null;
+
+    public BasicStatefulLocalTestClient(final String name) {
         super(name);
     }
 }

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulTestClient.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulTestClient.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulTestClient.java Tue Jul 15 21:55:09 2014
@@ -19,18 +19,16 @@ package org.apache.openejb.test.stateful
 import javax.ejb.EJB;
 
 /**
- * 
- * 
  * @version $Rev$ $Date$
  */
 public abstract class BasicStatefulTestClient extends StatefulTestClient {
-    
-	@EJB(name="client/tests/stateful/BasicStatefulPojoHome",
-		 beanInterface=BasicStatefulHome.class)
-	protected BasicStatefulHome ejbHome = null;
-	protected BasicStatefulObject ejbObject = null;
 
-    public BasicStatefulTestClient(String name){
+    @EJB(name = "client/tests/stateful/BasicStatefulPojoHome",
+        beanInterface = BasicStatefulHome.class)
+    protected BasicStatefulHome ejbHome = null;
+    protected BasicStatefulObject ejbObject = null;
+
+    public BasicStatefulTestClient(final String name) {
         super(name);
     }
 }

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulAllowedOperationsTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulAllowedOperationsTests.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulAllowedOperationsTests.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulAllowedOperationsTests.java Tue Jul 15 21:55:09 2014
@@ -19,82 +19,80 @@ package org.apache.openejb.test.stateful
 import org.apache.openejb.test.object.OperationsPolicy;
 
 /**
- * 
  * [9] Should be run as the nineth test suite of the BasicStatefulTestClients
- * 
+ * <p/>
  * <PRE>
  * =========================================================================
- * Operations allowed in the methods of a stateful SessionBean with 
+ * Operations allowed in the methods of a stateful SessionBean with
  * container-managed transaction demarcation
  * =========================================================================
- * 
+ * <p/>
  * Bean method           | Bean method can perform the following operations
  * ______________________|__________________________________________________
- *                       |
+ * |
  * constructor           | -
  * ______________________|__________________________________________________
- *                       |
+ * |
  * setSessionContext     |  SessionContext methods:
- *                       |     - getEJBHome
- *                       |  JNDI access to java:comp/env
+ * |     - 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
+ * 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
+ * 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
+ * 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
+ * |     - getEJBHome
+ * |     - getCallerPrincipal
+ * |     - isCallerInRole
+ * |     - getEJBObject
+ * |  JNDI access to java:comp/env
+ * |  Resource manager access
+ * |  Enterprise bean access
  * ______________________|__________________________________________________
  * </PRE>
- * 
  */
-public class StatefulAllowedOperationsTests extends BasicStatefulTestClient{
+public class StatefulAllowedOperationsTests extends BasicStatefulTestClient {
 
-    public StatefulAllowedOperationsTests(){
+    public StatefulAllowedOperationsTests() {
         super("AllowedOperations.");
     }
 
-    protected void setUp() throws Exception{
+    protected void setUp() throws Exception {
         super.setUp();
-        Object obj = initialContext.lookup("client/tests/stateful/BasicStatefulHome");
-        ejbHome = (BasicStatefulHome)javax.rmi.PortableRemoteObject.narrow( obj, BasicStatefulHome.class);
+        final Object obj = initialContext.lookup("client/tests/stateful/BasicStatefulHome");
+        ejbHome = (BasicStatefulHome) javax.rmi.PortableRemoteObject.narrow(obj, BasicStatefulHome.class);
         ejbObject = ejbHome.createObject("Fourth Bean");
         ejbHandle = ejbObject.getHandle();
         /* These tests will only work if the specified
@@ -104,10 +102,10 @@ public class StatefulAllowedOperationsTe
          * Implement a little application senario to ensure
          * that all methods tested for below have been called
          * by the container.
-         */         
+         */
     }
-    
-    protected void tearDown() throws Exception{
+
+    protected void tearDown() throws Exception {
         ejbObject.remove();
         super.tearDown();
     }
@@ -115,332 +113,339 @@ public class StatefulAllowedOperationsTe
     //=====================================
     // Test EJBContext allowed operations       
     //
+
     /**
      * <PRE>
      * Bean method           | Bean method can perform the following operations
      * ______________________|__________________________________________________
-     *                       |
+     * |
      * setSessionContext     |  SessionContext methods:
-     *                       |     - getEJBHome
-     *                       |  JNDI access to java:comp/env
+     * |     - getEJBHome
+     * |  JNDI access to java:comp/env
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test01_setSessionContext(){     
-        try{
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-        
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("setSessionContext");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test01_setSessionContext() {
+        try {
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("setSessionContext");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
-        
+
     }
+
     /**
      * <PRE>
      * 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
+     * ejbPassivate          |     - isCallerInRole
+     * |     - getEJBObject
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test02_ejbCreate(){    
-        try{
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbCreate");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test02_ejbCreate() {
+        try {
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("ejbCreate");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
+
     /**
      * <PRE>
      * 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
+     * ejbPassivate          |     - isCallerInRole
+     * |     - getEJBObject
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test03_ejbRemove(){
-        try{
+    public void test03_ejbRemove() {
+        try {
         /* TO DO:  This test needs unique functionality to work */
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbRemove");
-    
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("ejbRemove");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
 
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
+
     /**
      * <PRE>
      * 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
+     * ejbPassivate          |     - isCallerInRole
+     * |     - getEJBObject
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test04_ejbActivate(){  
-        try{
-            
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbActivate");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
- 
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test04_ejbActivate() {
+        try {
+
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("ejbActivate");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
+
     /**
      * <PRE>
      * 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
+     * ejbPassivate          |     - isCallerInRole
+     * |     - getEJBObject
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test05_ejbPassivate(){     
-        try{
-            
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbPassivate");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-  
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test05_ejbPassivate() {
+        try {
+
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("ejbPassivate");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
-    
+
     /**
      * <PRE>
      * 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
+     * |     - getCallerPrincipal
+     * |     - getRollbackOnly
+     * |     - isCallerInRole
+     * |     - setRollbackOnly
+     * |     - getEJBObject
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test06_businessMethod(){
-      try{
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_getRollbackOnly );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_setRollbackOnly );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("businessMethod");
-    
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
-        
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test06_businessMethod() {
+        try {
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_getRollbackOnly);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_setRollbackOnly);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("businessMethod");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
-        
+
     }
+
     /**
      * <PRE>
      * 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
+     * beforeCompletion      |     - getEJBHome
+     * |     - getCallerPrincipal
+     * |     - getRollbackOnly
+     * |     - isCallerInRole
+     * |     - setRollbackOnly
+     * |     - getEJBObject
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test07_afterBegin(){
-        try{
-            
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_getRollbackOnly );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_setRollbackOnly );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("afterBegin");
-    
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
+    public void test07_afterBegin() {
+        try {
+
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_getRollbackOnly);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_setRollbackOnly);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("afterBegin");
 
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
-    
+
     /**
      * <PRE>
      * 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
+     * beforeCompletion      |     - getEJBHome
+     * |     - getCallerPrincipal
+     * |     - getRollbackOnly
+     * |     - isCallerInRole
+     * |     - setRollbackOnly
+     * |     - getEJBObject
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test08_beforeCompletion(){
-        try{
-            
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_getRollbackOnly );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_setRollbackOnly );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("beforeCompletion");
-    
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
- 
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test08_beforeCompletion() {
+        try {
+
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_getRollbackOnly);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_setRollbackOnly);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("beforeCompletion");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
+
     /**
      * <PRE>
      * 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
+     * |     - getEJBHome
+     * |     - getCallerPrincipal
+     * |     - isCallerInRole
+     * |     - getEJBObject
+     * |  JNDI access to java:comp/env
+     * |  Resource manager access
+     * |  Enterprise bean access
      * ______________________|__________________________________________________
      * </PRE>
      */
-    public void test09_afterCompletion(){    
-        try{
-            
-        OperationsPolicy policy = new OperationsPolicy();
-        policy.allow( policy.Context_getEJBHome );
-        policy.allow( policy.Context_getCallerPrincipal );
-        policy.allow( policy.Context_isCallerInRole );
-        policy.allow( policy.Context_getEJBObject );
-        policy.allow( policy.JNDI_access_to_java_comp_env );
-        
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("afterCompletion");
-        
-        assertNotNull("The OperationsPolicy is null", actual );
-        assertEquals( expected, actual );
- 
-        } catch (Exception e){
-            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+    public void test09_afterCompletion() {
+        try {
+
+            final OperationsPolicy policy = new OperationsPolicy();
+            policy.allow(policy.Context_getEJBHome);
+            policy.allow(policy.Context_getCallerPrincipal);
+            policy.allow(policy.Context_isCallerInRole);
+            policy.allow(policy.Context_getEJBObject);
+            policy.allow(policy.JNDI_access_to_java_comp_env);
+
+            final Object expected = policy;
+            final Object actual = ejbObject.getAllowedOperationsReport("afterCompletion");
+
+            assertNotNull("The OperationsPolicy is null", actual);
+            assertEquals(expected, actual);
+
+        } catch (final Exception e) {
+            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }
     }
     //