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/07 21:07:53 UTC

svn commit: r1608563 [32/38] - in /tomee/tomee/branches/tomee-1.7.x/itests: failover-ejb/src/main/java/org/apache/openejb/itest/failover/ejb/ failover/src/main/java/org/apache/openejb/itest/failover/ failover/src/main/java/org/apache/openejb/server/con...

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonRmiIiopTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonRmiIiopTests.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonRmiIiopTests.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonRmiIiopTests.java Mon Jul  7 19:07:41 2014
@@ -37,7 +37,7 @@ public class SingletonRmiIiopTests exten
 
     protected void setUp() throws Exception{
         super.setUp();
-        Object obj = initialContext.lookup("client/tests/singleton/RMI-over-IIOP/EJBHome");
+        final Object obj = initialContext.lookup("client/tests/singleton/RMI-over-IIOP/EJBHome");
         ejbHome = (RmiIiopSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, RmiIiopSingletonHome.class);
         ejbObject = ejbHome.create();
     }
@@ -48,25 +48,25 @@ public class SingletonRmiIiopTests exten
 
     public void test01_returnStringObject() {
         try{
-            String expected = new String("1");
-            String actual = ejbObject.returnStringObject(expected);
+            final String expected = new String("1");
+            final String actual = ejbObject.returnStringObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test02_returnStringObjectArray() {
         try{
-            String[] expected = {"1","2","3"};
-            String[] actual = ejbObject.returnStringObjectArray(expected);
+            final String[] expected = {"1","2","3"};
+            final String[] actual = ejbObject.returnStringObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -77,50 +77,50 @@ public class SingletonRmiIiopTests exten
 /*-------------------------------------------------*/
     public void test03_returnCharacterObject() {
         try{
-            Character expected = new Character('1');
-            Character actual = ejbObject.returnCharacterObject(expected);
+            final Character expected = new Character('1');
+            final Character actual = ejbObject.returnCharacterObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test04_returnCharacterPrimitive() {
         try{
-            char expected = '1';
-            char actual = ejbObject.returnCharacterPrimitive(expected);
+            final char expected = '1';
+            final char actual = ejbObject.returnCharacterPrimitive(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test05_returnCharacterObjectArray() {
         try{
-            Character[] expected = {new Character('1'),new Character('2'),new Character('3')};
-            Character[] actual = ejbObject.returnCharacterObjectArray(expected);
+            final Character[] expected = {new Character('1'),new Character('2'),new Character('3')};
+            final Character[] actual = ejbObject.returnCharacterObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test06_returnCharacterPrimitiveArray() {
         try{
-            char[] expected = {'1','2','3'};
-            char[] actual = ejbObject.returnCharacterPrimitiveArray(expected);
+            final char[] expected = {'1','2','3'};
+            final char[] actual = ejbObject.returnCharacterPrimitiveArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -132,50 +132,50 @@ public class SingletonRmiIiopTests exten
 
     public void test07_returnBooleanObject() {
         try{
-            Boolean expected = new Boolean(true);
-            Boolean actual = ejbObject.returnBooleanObject(expected);
+            final Boolean expected = new Boolean(true);
+            final Boolean actual = ejbObject.returnBooleanObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test08_returnBooleanPrimitive() {
         try{
-            boolean expected = true;
-            boolean actual = ejbObject.returnBooleanPrimitive(expected);
+            final boolean expected = true;
+            final boolean actual = ejbObject.returnBooleanPrimitive(expected);
             assertEquals(""+expected, ""+actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test09_returnBooleanObjectArray() {
         try{
-            Boolean[] expected = {new Boolean(true),new Boolean(false),new Boolean(true)};
-            Boolean[] actual = ejbObject.returnBooleanObjectArray(expected);
+            final Boolean[] expected = {new Boolean(true),new Boolean(false),new Boolean(true)};
+            final Boolean[] actual = ejbObject.returnBooleanObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test10_returnBooleanPrimitiveArray() {
         try{
-            boolean[] expected = {false,true,true};
-            boolean[] actual = ejbObject.returnBooleanPrimitiveArray(expected);
+            final boolean[] expected = {false,true,true};
+            final boolean[] actual = ejbObject.returnBooleanPrimitiveArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -187,50 +187,50 @@ public class SingletonRmiIiopTests exten
 
     public void test11_returnByteObject() {
         try{
-            Byte expected = new Byte("1");
-            Byte actual = ejbObject.returnByteObject(expected);
+            final Byte expected = new Byte("1");
+            final Byte actual = ejbObject.returnByteObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test12_returnBytePrimitive() {
         try{
-            byte expected = (byte)1;
-            byte actual = ejbObject.returnBytePrimitive(expected);
+            final byte expected = (byte)1;
+            final byte actual = ejbObject.returnBytePrimitive(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test13_returnByteObjectArray() {
         try{
-            Byte[] expected = {new Byte("1"),new Byte("2"),new Byte("3")};
-            Byte[] actual = ejbObject.returnByteObjectArray(expected);
+            final Byte[] expected = {new Byte("1"),new Byte("2"),new Byte("3")};
+            final Byte[] actual = ejbObject.returnByteObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test14_returnBytePrimitiveArray() {
         try{
-            byte[] expected = {(byte)1,(byte)2,(byte)3};
-            byte[] actual = ejbObject.returnBytePrimitiveArray(expected);
+            final byte[] expected = {(byte)1,(byte)2,(byte)3};
+            final byte[] actual = ejbObject.returnBytePrimitiveArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -242,50 +242,50 @@ public class SingletonRmiIiopTests exten
 
     public void test15_returnShortObject() {
         try{
-            Short expected = new Short("1");
-            Short actual = ejbObject.returnShortObject(expected);
+            final Short expected = new Short("1");
+            final Short actual = ejbObject.returnShortObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test16_returnShortPrimitive() {
         try{
-            short expected = (short)1;
-            short actual = ejbObject.returnShortPrimitive(expected);
+            final short expected = (short)1;
+            final short actual = ejbObject.returnShortPrimitive(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test17_returnShortObjectArray() {
         try{
-            Short[] expected = {new Short("1"),new Short("2"),new Short("3")};
-            Short[] actual = ejbObject.returnShortObjectArray(expected);
+            final Short[] expected = {new Short("1"),new Short("2"),new Short("3")};
+            final Short[] actual = ejbObject.returnShortObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test18_returnShortPrimitiveArray() {
         try{
-            short[] expected = {(short)1,(short)2,(short)3};
-            short[] actual = ejbObject.returnShortPrimitiveArray(expected);
+            final short[] expected = {(short)1,(short)2,(short)3};
+            final short[] actual = ejbObject.returnShortPrimitiveArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -297,50 +297,50 @@ public class SingletonRmiIiopTests exten
 
     public void test19_returnIntegerObject() {
         try{
-            Integer expected = new Integer(1);
-            Integer actual = ejbObject.returnIntegerObject(expected);
+            final Integer expected = new Integer(1);
+            final Integer actual = ejbObject.returnIntegerObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test20_returnIntegerPrimitive() {
         try{
-            int expected = 1;
-            int actual = ejbObject.returnIntegerPrimitive(expected);
+            final int expected = 1;
+            final int actual = ejbObject.returnIntegerPrimitive(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test21_returnIntegerObjectArray() {
         try{
-            Integer[] expected = {new Integer(1),new Integer(2),new Integer(3)};
-            Integer[] actual = ejbObject.returnIntegerObjectArray(expected);
+            final Integer[] expected = {new Integer(1),new Integer(2),new Integer(3)};
+            final Integer[] actual = ejbObject.returnIntegerObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test22_returnIntegerPrimitiveArray() {
         try{
-            int[] expected = {1,2,3};
-            int[] actual = ejbObject.returnIntegerPrimitiveArray(expected);
+            final int[] expected = {1,2,3};
+            final int[] actual = ejbObject.returnIntegerPrimitiveArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -352,50 +352,50 @@ public class SingletonRmiIiopTests exten
 
     public void test23_returnLongObject() {
         try{
-            Long expected = new Long("1");
-            Long actual = ejbObject.returnLongObject(expected);
+            final Long expected = new Long("1");
+            final Long actual = ejbObject.returnLongObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test24_returnLongPrimitive() {
         try{
-            long expected = 1;
-            long actual = ejbObject.returnLongPrimitive(expected);
+            final long expected = 1;
+            final long actual = ejbObject.returnLongPrimitive(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test25_returnLongObjectArray() {
         try{
-            Long[] expected = {new Long("1"),new Long("2"),new Long("3")};
-            Long[] actual = ejbObject.returnLongObjectArray(expected);
+            final Long[] expected = {new Long("1"),new Long("2"),new Long("3")};
+            final Long[] actual = ejbObject.returnLongObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test26_returnLongPrimitiveArray() {
         try{
-            long[] expected = {1,2,3};
-            long[] actual = ejbObject.returnLongPrimitiveArray(expected);
+            final long[] expected = {1,2,3};
+            final long[] actual = ejbObject.returnLongPrimitiveArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -407,50 +407,50 @@ public class SingletonRmiIiopTests exten
 
     public void test27_returnFloatObject() {
         try{
-            Float expected = new Float("1.3");
-            Float actual = ejbObject.returnFloatObject(expected);
+            final Float expected = new Float("1.3");
+            final Float actual = ejbObject.returnFloatObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test28_returnFloatPrimitive() {
         try{
-            float expected = 1.2F;
-            float actual = ejbObject.returnFloatPrimitive(expected);
+            final float expected = 1.2F;
+            final float actual = ejbObject.returnFloatPrimitive(expected);
             assertEquals(expected, actual, 0.00D);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test29_returnFloatObjectArray() {
         try{
-            Float[] expected = {new Float("1.1"),new Float("2.2"),new Float("3.3")};
-            Float[] actual = ejbObject.returnFloatObjectArray(expected);
+            final Float[] expected = {new Float("1.1"),new Float("2.2"),new Float("3.3")};
+            final Float[] actual = ejbObject.returnFloatObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test30_returnFloatPrimitiveArray() {
         try{
-            float[] expected = {1.2F,2.3F,3.4F};
-            float[] actual = ejbObject.returnFloatPrimitiveArray(expected);
+            final float[] expected = {1.2F,2.3F,3.4F};
+            final float[] actual = ejbObject.returnFloatPrimitiveArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i , expected[i], actual[i], 0.0D);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -462,50 +462,50 @@ public class SingletonRmiIiopTests exten
 
     public void test31_returnDoubleObject() {
         try{
-            Double expected = new Double("1.1");
-            Double actual = ejbObject.returnDoubleObject(expected);
+            final Double expected = new Double("1.1");
+            final Double actual = ejbObject.returnDoubleObject(expected);
             assertEquals(expected, actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test32_returnDoublePrimitive() {
         try{
-            double expected = 1.2;
-            double actual = ejbObject.returnDoublePrimitive(expected);
+            final double expected = 1.2;
+            final double actual = ejbObject.returnDoublePrimitive(expected);
             assertEquals(expected, actual, 0.0D);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test33_returnDoubleObjectArray() {
         try{
-            Double[] expected = {new Double("1.3"),new Double("2.4"),new Double("3.5")};
-            Double[] actual = ejbObject.returnDoubleObjectArray(expected);
+            final Double[] expected = {new Double("1.3"),new Double("2.4"),new Double("3.5")};
+            final Double[] actual = ejbObject.returnDoubleObjectArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i]);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test34_returnDoublePrimitiveArray() {
         try{
-            double[] expected = {1.4,2.5,3.6};
-            double[] actual = ejbObject.returnDoublePrimitiveArray(expected);
+            final double[] expected = {1.4,2.5,3.6};
+            final double[] actual = ejbObject.returnDoublePrimitiveArray(expected);
 
             assertNotNull("The array returned is null", actual);
             assertEquals(expected.length, actual.length);
             for (int i=0; i < actual.length; i++){
                 assertEquals("Array values are not equal at index "+i ,expected[i], actual[i],0.0D);
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -517,52 +517,52 @@ public class SingletonRmiIiopTests exten
 
     public void test35_returnEJBHome() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome expected = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome expected = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", expected);
 
-            EncSingletonHome actual = (EncSingletonHome)PortableRemoteObject.narrow( ejbObject.returnEJBHome(expected), EncSingletonHome.class);
+            final EncSingletonHome actual = (EncSingletonHome)PortableRemoteObject.narrow( ejbObject.returnEJBHome(expected), EncSingletonHome.class);
             assertNotNull("The EJBHome returned is null", actual);
 
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test36_returnEJBHome2() {
         try{
-            EncSingletonHome actual = (EncSingletonHome)PortableRemoteObject.narrow(ejbObject.returnEJBHome(), EncSingletonHome.class);
+            final EncSingletonHome actual = (EncSingletonHome)PortableRemoteObject.narrow(ejbObject.returnEJBHome(), EncSingletonHome.class);
             assertNotNull("The EJBHome returned is null", actual);
 
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test37_returnNestedEJBHome() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome expected = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome expected = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", expected);
 
-            ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
+            final ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
             assertNotNull("The ObjectGraph is null", graph);
 
-            EncSingletonHome actual = (EncSingletonHome)PortableRemoteObject.narrow(graph.getObject(), EncSingletonHome.class);
+            final EncSingletonHome actual = (EncSingletonHome)PortableRemoteObject.narrow(graph.getObject(), EncSingletonHome.class);
             assertNotNull("The EJBHome returned is null", actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test38_returnNestedEJBHome2() {
         try{
-            ObjectGraph graph = ejbObject.returnNestedEJBHome();
+            final ObjectGraph graph = ejbObject.returnNestedEJBHome();
             assertNotNull("The ObjectGraph is null", graph);
 
-            EncSingletonHome actual = (EncSingletonHome)PortableRemoteObject.narrow(graph.getObject(), EncSingletonHome.class);
+            final EncSingletonHome actual = (EncSingletonHome)PortableRemoteObject.narrow(graph.getObject(), EncSingletonHome.class);
             assertNotNull("The EJBHome returned is null", actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -570,18 +570,18 @@ public class SingletonRmiIiopTests exten
     public void test39_returnEJBHomeArray() {
         try{
 
-            EncSingletonHome expected[] = new EncSingletonHome[3];
+            final EncSingletonHome[] expected = new EncSingletonHome[3];
             for (int i=0; i < expected.length; i++){
-                Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+                final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
                 expected[i] = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
                 assertNotNull("The EJBHome returned from JNDI is null", expected[i]);
             }
 
-            EJBHome[] actual = ejbObject.returnEJBHomeArray(expected);
+            final EJBHome[] actual = ejbObject.returnEJBHomeArray(expected);
             assertNotNull("The EJBHome array returned is null", actual);
             assertEquals(expected.length, actual.length);
 
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -593,78 +593,78 @@ public class SingletonRmiIiopTests exten
 
     public void test40_returnEJBObject() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EncSingletonObject expected = home.create();
+            final EncSingletonObject expected = home.create();
             assertNotNull("The EJBObject created is null", expected);
 
-            EncSingletonObject actual = (EncSingletonObject)PortableRemoteObject.narrow(ejbObject.returnEJBObject(expected), EncSingletonObject.class);
+            final EncSingletonObject actual = (EncSingletonObject)PortableRemoteObject.narrow(ejbObject.returnEJBObject(expected), EncSingletonObject.class);
             assertNotNull("The EJBObject returned is null", actual);
 
             assertTrue("The EJBObejcts are not identical", expected.isIdentical(actual));
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test41_returnEJBObject2() {
         try{
-            EncSingletonObject actual = (EncSingletonObject)PortableRemoteObject.narrow(ejbObject.returnEJBObject(), EncSingletonObject.class);
+            final EncSingletonObject actual = (EncSingletonObject)PortableRemoteObject.narrow(ejbObject.returnEJBObject(), EncSingletonObject.class);
             assertNotNull("The EJBObject returned is null", actual);
 
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test42_returnNestedEJBObject() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EncSingletonObject expected = home.create();
+            final EncSingletonObject expected = home.create();
             assertNotNull("The EJBObject created is null", expected);
 
-            ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
+            final ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
             assertNotNull("The ObjectGraph is null", graph);
 
-            EncSingletonObject actual = (EncSingletonObject)PortableRemoteObject.narrow(graph.getObject(), EncSingletonObject.class);
+            final EncSingletonObject actual = (EncSingletonObject)PortableRemoteObject.narrow(graph.getObject(), EncSingletonObject.class);
             assertNotNull("The EJBObject returned is null", actual);
 
             assertTrue("The EJBObejcts are not identical", expected.isIdentical(actual));
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test43_returnNestedEJBObject2() {
         try{
-            ObjectGraph graph = ejbObject.returnNestedEJBObject();
+            final ObjectGraph graph = ejbObject.returnNestedEJBObject();
             assertNotNull("The ObjectGraph is null", graph);
 
-            EncSingletonObject actual = (EncSingletonObject)PortableRemoteObject.narrow(graph.getObject(), EncSingletonObject.class);
+            final EncSingletonObject actual = (EncSingletonObject)PortableRemoteObject.narrow(graph.getObject(), EncSingletonObject.class);
             assertNotNull("The EJBHome returned is null", actual);
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test44_returnEJBObjectArray() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EncSingletonObject expected[] = new EncSingletonObject[3];
+            final EncSingletonObject[] expected = new EncSingletonObject[3];
             for (int i=0; i < expected.length; i++){
                 expected[i] = home.create();
                 assertNotNull("The EJBObject created is null", expected[i]);
             }
 
-            EJBObject[] actual = ejbObject.returnEJBObjectArray(expected);
+            final EJBObject[] actual = ejbObject.returnEJBObjectArray(expected);
             assertNotNull("The EJBObject array returned is null", actual);
             assertEquals(expected.length, actual.length);
 
@@ -672,7 +672,7 @@ public class SingletonRmiIiopTests exten
                 assertTrue("The EJBObejcts are not identical", expected[i].isIdentical(actual[i]));
             }
 
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -683,64 +683,64 @@ public class SingletonRmiIiopTests exten
 
     public void test45_returnEJBMetaData() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EJBMetaData expected = home.getEJBMetaData();
+            final EJBMetaData expected = home.getEJBMetaData();
             assertNotNull("The EJBMetaData returned is null", expected);
 
-            EJBMetaData actual = ejbObject.returnEJBMetaData(expected);
+            final EJBMetaData actual = ejbObject.returnEJBMetaData(expected);
             assertNotNull("The EJBMetaData returned is null", actual);
             assertEquals(expected.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
             assertEquals(expected.getRemoteInterfaceClass(), actual.getRemoteInterfaceClass());
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test46_returnEJBMetaData() {
         try{
-            EJBMetaData actual = ejbObject.returnEJBMetaData();
+            final EJBMetaData actual = ejbObject.returnEJBMetaData();
             assertNotNull("The EJBMetaData returned is null", actual);
             assertEquals(actual.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
             assertEquals(actual.getRemoteInterfaceClass(), actual.getRemoteInterfaceClass());
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test47_returnNestedEJBMetaData() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EJBMetaData expected = home.getEJBMetaData();
+            final EJBMetaData expected = home.getEJBMetaData();
             assertNotNull("The EJBMetaData returned is null", expected);
 
-            ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
+            final ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
             assertNotNull("The ObjectGraph is null", graph);
 
-            EJBMetaData actual = (EJBMetaData)graph.getObject();
+            final EJBMetaData actual = (EJBMetaData)graph.getObject();
             assertNotNull("The EJBMetaData returned is null", actual);
             assertEquals(expected.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
             assertEquals(expected.getRemoteInterfaceClass(), actual.getRemoteInterfaceClass());
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test48_returnNestedEJBMetaData2() {
         try{
-            ObjectGraph graph = ejbObject.returnNestedEJBMetaData();
+            final ObjectGraph graph = ejbObject.returnNestedEJBMetaData();
             assertNotNull("The ObjectGraph is null", graph);
 
-            EJBMetaData actual = (EJBMetaData)graph.getObject();
+            final EJBMetaData actual = (EJBMetaData)graph.getObject();
             assertNotNull("The EJBMetaData returned is null", actual);
             assertNotNull("The home interface class of the EJBMetaData is null", actual.getHomeInterfaceClass());
             assertNotNull("The remote interface class of the EJBMetaData is null", actual.getRemoteInterfaceClass());
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -748,17 +748,17 @@ public class SingletonRmiIiopTests exten
     public void test49_returnEJBMetaDataArray() {
         try{
 
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EJBMetaData expected[] = new EJBMetaData[3];
+            final EJBMetaData[] expected = new EJBMetaData[3];
             for (int i=0; i < expected.length; i++){
                 expected[i] = home.getEJBMetaData();
                 assertNotNull("The EJBMetaData returned is null", expected[i]);
             }
 
-            EJBMetaData[] actual = (EJBMetaData[])ejbObject.returnEJBMetaDataArray(expected);
+            final EJBMetaData[] actual = (EJBMetaData[])ejbObject.returnEJBMetaDataArray(expected);
             assertNotNull("The EJBMetaData array returned is null", actual);
             assertEquals(expected.length, actual.length);
 
@@ -767,7 +767,7 @@ public class SingletonRmiIiopTests exten
                 assertEquals(expected[i].getHomeInterfaceClass(), actual[i].getHomeInterfaceClass());
                 assertEquals(expected[i].getRemoteInterfaceClass(), actual[i].getRemoteInterfaceClass());
             }
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -779,100 +779,100 @@ public class SingletonRmiIiopTests exten
 
     public void test50_returnHandle() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EncSingletonObject object = home.create();
+            final EncSingletonObject object = home.create();
             assertNotNull("The EJBObject created is null", object);
 
-            Handle expected = object.getHandle();
+            final Handle expected = object.getHandle();
             assertNotNull("The EJBObject Handle returned is null", expected);
             assertNotNull("The EJBObject in the Handle is null", expected.getEJBObject());
 
-            Handle actual = ejbObject.returnHandle(expected);
+            final Handle actual = ejbObject.returnHandle(expected);
             assertNotNull("The EJBObject Handle returned is null", actual);
             assertNotNull("The EJBObject in the Handle is null", actual.getEJBObject());
 
-            EJBObject exp = expected.getEJBObject();
-            EJBObject act = actual.getEJBObject();
+            final EJBObject exp = expected.getEJBObject();
+            final EJBObject act = actual.getEJBObject();
 
             assertTrue("The EJBObjects in the Handles are not identical", exp.isIdentical(act));
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test51_returnHandle() {
         try{
-            Handle actual = ejbObject.returnHandle();
+            final Handle actual = ejbObject.returnHandle();
             assertNotNull("The EJBObject Handle returned is null", actual);
             assertNotNull("The EJBObject in the Handle is null", actual.getEJBObject());
 
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test52_returnNestedHandle() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EncSingletonObject object = home.create();
+            final EncSingletonObject object = home.create();
             assertNotNull("The EJBObject created is null", object);
 
-            Handle expected = object.getHandle();
+            final Handle expected = object.getHandle();
             assertNotNull("The EJBObject Handle returned is null", expected);
             assertNotNull("The EJBObject in the Handle is null", expected.getEJBObject());
 
-            ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
+            final ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
             assertNotNull("The ObjectGraph is null", graph);
 
-            Handle actual = (Handle)graph.getObject();
+            final Handle actual = (Handle)graph.getObject();
             assertNotNull("The EJBObject Handle returned is null", actual);
             assertNotNull("The EJBObject in the Handle is null", actual.getEJBObject());
 
-            EJBObject exp = expected.getEJBObject();
-            EJBObject act = actual.getEJBObject();
+            final EJBObject exp = expected.getEJBObject();
+            final EJBObject act = actual.getEJBObject();
 
             assertTrue("The EJBObjects in the Handles are not identical", exp.isIdentical(act));
 
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test53_returnNestedHandle2() {
         try{
-            ObjectGraph graph = ejbObject.returnNestedHandle();
+            final ObjectGraph graph = ejbObject.returnNestedHandle();
             assertNotNull("The ObjectGraph is null", graph);
 
-            Handle actual = (Handle)graph.getObject();
+            final Handle actual = (Handle)graph.getObject();
             assertNotNull("The EJBObject Handle returned is null", actual);
             assertNotNull("The EJBObject in the Handle is null", actual.getEJBObject());
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test54_returnHandleArray() {
         try{
-            Object obj = initialContext.lookup("client/tests/singleton/EncBean");
-            EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
+            final Object obj = initialContext.lookup("client/tests/singleton/EncBean");
+            final EncSingletonHome home = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
             assertNotNull("The EJBHome returned from JNDI is null", home);
 
-            EncSingletonObject object = home.create();
+            final EncSingletonObject object = home.create();
             assertNotNull("The EJBObject created is null", object);
 
-            Handle expected[] = new Handle[3];
+            final Handle[] expected = new Handle[3];
             for (int i=0; i < expected.length; i++){
                 expected[i] = object.getHandle();
                 assertNotNull("The EJBObject Handle returned is null", expected[i]);
             }
 
-            Handle[] actual = (Handle[])ejbObject.returnHandleArray(expected);
+            final Handle[] actual = (Handle[])ejbObject.returnHandleArray(expected);
             assertNotNull("The Handle array returned is null", actual);
             assertEquals(expected.length, actual.length);
 
@@ -882,7 +882,7 @@ public class SingletonRmiIiopTests exten
                 assertTrue("The EJBObjects in the Handles are not equal", expected[i].getEJBObject().isIdentical(actual[i].getEJBObject()));
             }
 
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -902,12 +902,12 @@ public class SingletonRmiIiopTests exten
 /*-------------------------------------------------*/
 
     public void test57_returnClass() {
-        Class[] primitives = {boolean.class, byte.class, char.class, short.class, int.class, long.class, float.class, double.class};
-        for (Class expected : primitives) {
+        final Class[] primitives = {boolean.class, byte.class, char.class, short.class, int.class, long.class, float.class, double.class};
+        for (final Class expected : primitives) {
             try {
-                Class actual = ejbObject.returnClass(expected);
+                final Class actual = ejbObject.returnClass(expected);
                 assertEquals(expected, actual);
-            } catch (Exception e) {
+            } catch (final Exception e) {
                 fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
             }
         }
@@ -915,33 +915,33 @@ public class SingletonRmiIiopTests exten
 
     public void test58_returnClassArray() {
         try {
-            Class[] expected = {boolean.class, byte.class, char.class, short.class, int.class, long.class, float.class, double.class};
-            Class[] actual = ejbObject.returnClassArray(expected);
+            final Class[] expected = {boolean.class, byte.class, char.class, short.class, int.class, long.class, float.class, double.class};
+            final Class[] actual = ejbObject.returnClassArray(expected);
 
             assertEquals(expected.length, actual.length);
             for (int i = 0; i < expected.length; i++) {
                 assertEquals(expected[i], actual[i]);
             }
-        } catch (RemoteException e) {
+        } catch (final RemoteException e) {
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
 
     public void test59_returnClassObjectGraph() {
         try {
-            Class[] primitives = {boolean.class, byte.class, char.class, short.class, int.class, long.class, float.class, double.class};
-            ObjectGraph expectedGraph = new ObjectGraph(primitives);
+            final Class[] primitives = {boolean.class, byte.class, char.class, short.class, int.class, long.class, float.class, double.class};
+            final ObjectGraph expectedGraph = new ObjectGraph(primitives);
 
-            ObjectGraph actualGraph = ejbObject.returnObjectGraph(expectedGraph);
+            final ObjectGraph actualGraph = ejbObject.returnObjectGraph(expectedGraph);
 
-            Class[] expected = (Class[]) expectedGraph.getObject();
-            Class[] actual = (Class[]) actualGraph.getObject();
+            final Class[] expected = (Class[]) expectedGraph.getObject();
+            final Class[] actual = (Class[]) actualGraph.getObject();
 
             assertEquals(expected.length, actual.length);
             for (int i = 0; i < expected.length; i++) {
                 assertEquals(expected[i], actual[i]);
             }
-        } catch (RemoteException e) {
+        } catch (final RemoteException e) {
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonSetterInjectionTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonSetterInjectionTests.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonSetterInjectionTests.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonSetterInjectionTests.java Mon Jul  7 19:07:41 2014
@@ -35,7 +35,7 @@ public class SingletonSetterInjectionTes
 
     protected void setUp() throws Exception{
         super.setUp();
-        Object obj = initialContext.lookup("client/tests/singleton/SetterInjectionSingletonBean");
+        final Object obj = initialContext.lookup("client/tests/singleton/SetterInjectionSingletonBean");
         ejbHome = (EncSingletonHome)javax.rmi.PortableRemoteObject.narrow( obj, EncSingletonHome.class);
         ejbObject = ejbHome.create();
 
@@ -51,7 +51,7 @@ public class SingletonSetterInjectionTes
         try {
             /*[1] Drop database table */
             TestManager.getDatabase().dropEntityTable();
-        } catch (Exception e){
+        } catch (final Exception e){
             throw e;
         } finally {
             super.tearDown();
@@ -61,9 +61,9 @@ public class SingletonSetterInjectionTes
     public void test01_lookupStringEntry() {
         try{
             ejbObject.lookupStringEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -71,9 +71,9 @@ public class SingletonSetterInjectionTes
     public void test02_lookupDoubleEntry() {
         try{
             ejbObject.lookupDoubleEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -81,9 +81,9 @@ public class SingletonSetterInjectionTes
     public void test03_lookupLongEntry() {
         try{
             ejbObject.lookupLongEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -91,9 +91,9 @@ public class SingletonSetterInjectionTes
     public void test04_lookupFloatEntry() {
         try{
             ejbObject.lookupFloatEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -101,9 +101,9 @@ public class SingletonSetterInjectionTes
     public void test05_lookupIntegerEntry() {
         try{
             ejbObject.lookupIntegerEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -111,9 +111,9 @@ public class SingletonSetterInjectionTes
     public void test06_lookupShortEntry() {
         try{
             ejbObject.lookupShortEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -121,9 +121,9 @@ public class SingletonSetterInjectionTes
     public void test07_lookupBooleanEntry() {
         try{
             ejbObject.lookupBooleanEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -131,9 +131,9 @@ public class SingletonSetterInjectionTes
     public void test08_lookupByteEntry() {
         try{
             ejbObject.lookupByteEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -141,9 +141,9 @@ public class SingletonSetterInjectionTes
     public void test09_lookupCharacterEntry() {
         try{
             ejbObject.lookupCharacterEntry();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -151,9 +151,9 @@ public class SingletonSetterInjectionTes
     public void test10_lookupEntityBean() {
         try{
             ejbObject.lookupEntityBean();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -161,9 +161,9 @@ public class SingletonSetterInjectionTes
     public void test11_lookupStatefulBean() {
         try{
             ejbObject.lookupStatefulBean();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -171,9 +171,9 @@ public class SingletonSetterInjectionTes
     public void test12_lookupSingletonBean() {
         try{
             ejbObject.lookupSingletonBean();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -181,9 +181,9 @@ public class SingletonSetterInjectionTes
     public void test13_lookupResource() {
         try{
             ejbObject.lookupResource();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -191,9 +191,9 @@ public class SingletonSetterInjectionTes
     public void test14_lookupPersistenceUnit() {
         try{
             ejbObject.lookupPersistenceUnit();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -201,9 +201,9 @@ public class SingletonSetterInjectionTes
     public void test15_lookupPersistenceContext() {
         try{
             ejbObject.lookupPersistenceContext();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -211,9 +211,9 @@ public class SingletonSetterInjectionTes
     public void test18_lookupSessionContext() {
         try{
             ejbObject.lookupSessionContext();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -221,9 +221,9 @@ public class SingletonSetterInjectionTes
     public void test19_lookupSingletonBusinessLocal() {
         try{
             ejbObject.lookupSingletonBusinessLocal();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -231,9 +231,9 @@ public class SingletonSetterInjectionTes
     public void test20_lookupSingletonBusinessRemote() {
         try{
             ejbObject.lookupSingletonBusinessRemote();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -241,9 +241,9 @@ public class SingletonSetterInjectionTes
     public void test21_lookupStatefulBusinessLocal() {
         try{
             ejbObject.lookupStatefulBusinessLocal();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -251,9 +251,9 @@ public class SingletonSetterInjectionTes
     public void test22_lookupStatefulBusinessRemote() {
         try{
             ejbObject.lookupStatefulBusinessRemote();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -261,9 +261,9 @@ public class SingletonSetterInjectionTes
     public void test23_lookupJMSConnectionFactory() {
         try{
             ejbObject.lookupJMSConnectionFactory();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -271,9 +271,9 @@ public class SingletonSetterInjectionTes
     public void test24_lookupStatefulBusinessLocalBean() {
         try{
             ejbObject.lookupStatefulBusinessLocalBean();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -281,9 +281,9 @@ public class SingletonSetterInjectionTes
     public void test25_lookupSingletonBusinessLocalBean() {
         try{
             ejbObject.lookupSingletonBusinessLocalBean();
-        } catch (TestFailureException e){
+        } catch (final TestFailureException e){
             throw e.error;
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestClient.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestClient.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestClient.java Mon Jul  7 19:07:41 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/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestSuite.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestSuite.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestSuite.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/singleton/SingletonTestSuite.java Mon Jul  7 19:07:41 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/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulLocalTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulLocalTestClient.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulLocalTestClient.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulLocalTestClient.java Mon Jul  7 19:07:41 2014
@@ -24,7 +24,7 @@ package org.apache.openejb.test.stateful
  */
 public abstract class AnnotatedFieldInjectionStatefulLocalTestClient extends BasicStatefulLocalTestClient {
 
-    public AnnotatedFieldInjectionStatefulLocalTestClient(String name) {
+    public AnnotatedFieldInjectionStatefulLocalTestClient(final String name) {
         super("AnnotatedFieldInjectionStatefulLocalTestClient." + name);
     }
     

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoHomeIntfcTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoHomeIntfcTests.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoHomeIntfcTests.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoHomeIntfcTests.java Mon Jul  7 19:07:41 2014
@@ -39,7 +39,7 @@ public class AnnotatedFieldInjectionStat
         try{
             ejbObject = ejbHome.createObject("BasicStatefulObject");
             assertNotNull( "The EJBObject is null", ejbObject );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests.java Mon Jul  7 19:07:41 2014
@@ -39,7 +39,7 @@ public class AnnotatedFieldInjectionStat
         try{
             ejbLocalObject = ejbLocalHome.create("BasicStatefulLocalObject");
             assertNotNull( "The EJBObject is null", ejbLocalObject );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }        
     }

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulTestClient.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulTestClient.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedFieldInjectionStatefulTestClient.java Mon Jul  7 19:07:41 2014
@@ -24,7 +24,7 @@ package org.apache.openejb.test.stateful
  */
 public abstract class AnnotatedFieldInjectionStatefulTestClient extends BasicStatefulTestClient {
 
-    public AnnotatedFieldInjectionStatefulTestClient(String name) {
+    public AnnotatedFieldInjectionStatefulTestClient(final String name) {
         super("AnnotatedFieldInjectionStatefulTestClient." + name);
     }
     

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulLocalTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulLocalTestClient.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulLocalTestClient.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulLocalTestClient.java Mon Jul  7 19:07:41 2014
@@ -24,7 +24,7 @@ package org.apache.openejb.test.stateful
  */
 public abstract class AnnotatedSetterInjectionStatefulLocalTestClient extends BasicStatefulLocalTestClient {
 
-    public AnnotatedSetterInjectionStatefulLocalTestClient(String name) {
+    public AnnotatedSetterInjectionStatefulLocalTestClient(final String name) {
         super("AnnotatedSetterInjectionStatefulLocalTestClient." + name);
     }
     

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoHomeIntfcTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoHomeIntfcTests.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoHomeIntfcTests.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoHomeIntfcTests.java Mon Jul  7 19:07:41 2014
@@ -37,7 +37,7 @@ public class AnnotatedSetterInjectionSta
     
     @EJB(name="client/tests/stateful/BasicStatefulPojoHome",
    	     beanInterface=BasicStatefulHome.class)
-    public void setEjbHome(BasicStatefulHome bsEjbHome) {
+    public void setEjbHome(final BasicStatefulHome bsEjbHome) {
     	ejbHome = bsEjbHome;
     }
     
@@ -48,7 +48,7 @@ public class AnnotatedSetterInjectionSta
         try{
             ejbObject = ejbHome.createObject("BasicStatefulObject");
             assertNotNull( "The EJBObject is null", ejbObject );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulPojoLocalHomeIntfcTests.java Mon Jul  7 19:07:41 2014
@@ -37,7 +37,7 @@ public class AnnotatedSetterInjectionSta
     
 	@EJB(name="client/tests/stateful/BasicStatefulPojoHomeLocal",
 		 beanInterface = BasicStatefulLocalHome.class)
-    public void setEjbLocalHome(BasicStatefulLocalHome bslEjbHome) {
+    public void setEjbLocalHome(final BasicStatefulLocalHome bslEjbHome) {
     	ejbLocalHome = bslEjbHome;
     }
     
@@ -48,7 +48,7 @@ public class AnnotatedSetterInjectionSta
         try{
             ejbLocalObject = ejbLocalHome.create("BasicStatefulLocalObject");
             assertNotNull( "The EJBObject is null", ejbLocalObject );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception " + e.getClass() + " : " + e.getMessage());
         }        
     }

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulTestClient.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulTestClient.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/AnnotatedSetterInjectionStatefulTestClient.java Mon Jul  7 19:07:41 2014
@@ -24,7 +24,7 @@ package org.apache.openejb.test.stateful
  */
 public abstract class AnnotatedSetterInjectionStatefulTestClient extends BasicStatefulTestClient {
 
-    public AnnotatedSetterInjectionStatefulTestClient(String name) {
+    public AnnotatedSetterInjectionStatefulTestClient(final String name) {
         super("AnnotatedSetterInjectionStatefulTestClient." + name);
     }
     

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BMTStatefulAllowedOperationsTests.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BMTStatefulAllowedOperationsTests.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BMTStatefulAllowedOperationsTests.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BMTStatefulAllowedOperationsTests.java Mon Jul  7 19:07:41 2014
@@ -71,7 +71,7 @@ public class BMTStatefulAllowedOperation
 
     protected void setUp() throws Exception{
         super.setUp();
-        Object obj = initialContext.lookup("client/tests/stateful/BeanManagedBasicStatefulHome");
+        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();
@@ -106,16 +106,16 @@ public class BMTStatefulAllowedOperation
      */
     public void test01_setSessionContext(){
         try{
-        OperationsPolicy policy = new OperationsPolicy();
+        final 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");
+        final Object expected = policy;
+        final Object actual = ejbObject.getAllowedOperationsReport("setSessionContext");
         
         assertNotNull("The OperationsPolicy is null", actual );
         assertEquals( expected, actual );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -138,7 +138,7 @@ public class BMTStatefulAllowedOperation
      */
     public void test02_ejbCreate(){             
         try{
-        OperationsPolicy policy = new OperationsPolicy();
+        final OperationsPolicy policy = new OperationsPolicy();
         policy.allow( policy.Context_getEJBHome );
         policy.allow( policy.Context_getCallerPrincipal );
         policy.allow( policy.Context_isCallerInRole );
@@ -146,12 +146,12 @@ public class BMTStatefulAllowedOperation
         policy.allow( policy.Context_getUserTransaction );
         policy.allow( policy.JNDI_access_to_java_comp_env );
 
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbCreate");
+        final Object expected = policy;
+        final Object actual = ejbObject.getAllowedOperationsReport("ejbCreate");
         
         assertNotNull("The OperationsPolicy is null", actual );
         assertEquals( expected, actual );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -175,7 +175,7 @@ public class BMTStatefulAllowedOperation
     public void test03_ejbRemove(){
         try{
         /* TO DO:  This test needs unique functionality to work */
-        OperationsPolicy policy = new OperationsPolicy();
+        final OperationsPolicy policy = new OperationsPolicy();
         policy.allow( policy.Context_getEJBHome );
         policy.allow( policy.Context_getCallerPrincipal );
         policy.allow( policy.Context_isCallerInRole );
@@ -183,12 +183,12 @@ public class BMTStatefulAllowedOperation
         policy.allow( policy.Context_getUserTransaction );
         policy.allow( policy.JNDI_access_to_java_comp_env );
 
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbRemove");
+        final Object expected = policy;
+        final Object actual = ejbObject.getAllowedOperationsReport("ejbRemove");
     
         assertNotNull("The OperationsPolicy is null", actual );
         assertEquals( expected, actual );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -211,7 +211,7 @@ public class BMTStatefulAllowedOperation
      */
     public void test04_ejbActivate(){             
         try{
-        OperationsPolicy policy = new OperationsPolicy();
+        final OperationsPolicy policy = new OperationsPolicy();
         policy.allow( policy.Context_getEJBHome );
         policy.allow( policy.Context_getCallerPrincipal );
         policy.allow( policy.Context_isCallerInRole );
@@ -219,12 +219,12 @@ public class BMTStatefulAllowedOperation
         policy.allow( policy.Context_getUserTransaction );
         policy.allow( policy.JNDI_access_to_java_comp_env );
 
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbActivate");
+        final Object expected = policy;
+        final Object actual = ejbObject.getAllowedOperationsReport("ejbActivate");
         
         assertNotNull("The OperationsPolicy is null", actual );
         assertEquals( expected, actual );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -247,7 +247,7 @@ public class BMTStatefulAllowedOperation
      */
     public void test05_ejbPassivate(){             
         try{
-        OperationsPolicy policy = new OperationsPolicy();
+        final OperationsPolicy policy = new OperationsPolicy();
         policy.allow( policy.Context_getEJBHome );
         policy.allow( policy.Context_getCallerPrincipal );
         policy.allow( policy.Context_isCallerInRole );
@@ -255,12 +255,12 @@ public class BMTStatefulAllowedOperation
         policy.allow( policy.Context_getUserTransaction );
         policy.allow( policy.JNDI_access_to_java_comp_env );
 
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("ejbPassivate");
+        final Object expected = policy;
+        final Object actual = ejbObject.getAllowedOperationsReport("ejbPassivate");
         
         assertNotNull("The OperationsPolicy is null", actual );
         assertEquals( expected, actual );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }
@@ -284,7 +284,7 @@ public class BMTStatefulAllowedOperation
      */
     public void test06_businessMethod(){
         try{
-        OperationsPolicy policy = new OperationsPolicy();
+        final OperationsPolicy policy = new OperationsPolicy();
         policy.allow( policy.Context_getEJBHome );
         policy.allow( policy.Context_getCallerPrincipal );
         policy.allow( policy.Context_isCallerInRole );
@@ -292,12 +292,12 @@ public class BMTStatefulAllowedOperation
         policy.allow( policy.Context_getUserTransaction );
         policy.allow( policy.JNDI_access_to_java_comp_env );
     
-        Object expected = policy;
-        Object actual = ejbObject.getAllowedOperationsReport("businessMethod");
+        final Object expected = policy;
+        final Object actual = ejbObject.getAllowedOperationsReport("businessMethod");
     
         assertNotNull("The OperationsPolicy is null", actual );
         assertEquals( expected, actual );
-        } catch (Exception e){
+        } catch (final Exception e){
             fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
         }
     }

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalTestClient.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalTestClient.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalTestClient.java Mon Jul  7 19:07:41 2014
@@ -29,7 +29,7 @@ public abstract class BasicStatefulLocal
 	protected BasicStatefulLocalHome ejbLocalHome = null;
 	protected BasicStatefulLocalObject ejbLocalObject = null;
 
-    public BasicStatefulLocalTestClient(String name){
+    public BasicStatefulLocalTestClient(final String name){
         super(name);
     }
 }

Modified: tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulTestClient.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulTestClient.java?rev=1608563&r1=1608562&r2=1608563&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulTestClient.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/BasicStatefulTestClient.java Mon Jul  7 19:07:41 2014
@@ -30,7 +30,7 @@ public abstract class BasicStatefulTestC
 	protected BasicStatefulHome ejbHome = null;
 	protected BasicStatefulObject ejbObject = null;
 
-    public BasicStatefulTestClient(String name){
+    public BasicStatefulTestClient(final String name){
         super(name);
     }
 }