You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2008/03/24 22:45:26 UTC

svn commit: r640592 - /openejb/branches/openejb-3.0/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/object/OperationsPolicy.java

Author: dblevins
Date: Mon Mar 24 14:45:25 2008
New Revision: 640592

URL: http://svn.apache.org/viewvc?rev=640592&view=rev
Log:
Merging r639523 - http://svn.apache.org/viewvc?rev=639523&view=rev

svn merge -r 639522:639523 https://svn.apache.org/repos/asf/openejb/trunk/openejb3 .

------------------------------------------------------------------------
r639523 | dblevins | 2008-03-20 19:44:48 -0700 (Thu, 20 Mar 2008) | 2 lines

Updated to show more info than the [10101110] type string

------------------------------------------------------------------------

Modified:
    openejb/branches/openejb-3.0/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/object/OperationsPolicy.java

Modified: openejb/branches/openejb-3.0/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/object/OperationsPolicy.java
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.0/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/object/OperationsPolicy.java?rev=640592&r1=640591&r2=640592&view=diff
==============================================================================
--- openejb/branches/openejb-3.0/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/object/OperationsPolicy.java (original)
+++ openejb/branches/openejb-3.0/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/object/OperationsPolicy.java Mon Mar 24 14:45:25 2008
@@ -78,11 +78,26 @@
     }
 
     public String toString() {
-        String str = "[";
+        String str = "";
         for (int i=0; i < allowedOperations.length; i++) {
-            str += (allowedOperations[i])? "1": "0";
+            String operation = "(empty)";
+            switch(i){
+                case Context_getEJBHome: operation = "Context_getEJBHome"; break;
+                case Context_getCallerPrincipal: operation = "Context_getCallerPrincipal"; break;
+                case Context_isCallerInRole: operation = "Context_isCallerInRole"; break;
+                case Context_getRollbackOnly: operation = "Context_getRollbackOnly"; break;
+                case Context_setRollbackOnly: operation = "Context_setRollbackOnly"; break;
+                case Context_getUserTransaction: operation = "Context_getUserTransaction"; break;
+                case Context_getEJBObject: operation = "Context_getEJBObject"; break;
+                case Context_getPrimaryKey: operation = "Context_getPrimaryKey"; break;
+                case JNDI_access_to_java_comp_env: operation = "JNDI_access_to_java_comp_env"; break;
+                case Context_lookup: operation = "Context_lookup"; break;
+                case Context_getTimerService: operation = "Context_getTimerService"; break;
+            }
+            str += allowedOperations[i] ? "TRUE   " : "FALSE  ";
+            str += operation + "\n";
+
         }
-        str += "]";
         return str;
 
     }