[jboss-cvs] JBossAS SVN: r65161 - trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree973/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 6 11:20:29 EDT 2007


Author: anil.saldhana at jboss.com
Date: 2007-09-06 11:20:29 -0400 (Thu, 06 Sep 2007)
New Revision: 65161

Modified:
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree973/unit/AnonymousCallerPrincipalTestCase.java
Log:
EJBTHREE-973: return the principal that called the bean for the caller principal, if present

Modified: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree973/unit/AnonymousCallerPrincipalTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree973/unit/AnonymousCallerPrincipalTestCase.java	2007-09-06 15:19:16 UTC (rev 65160)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree973/unit/AnonymousCallerPrincipalTestCase.java	2007-09-06 15:20:29 UTC (rev 65161)
@@ -75,7 +75,10 @@
          WhoAmI bean = lookupBean();
          String actual = bean.getCallerPrincipal();
          // "anonymous" is defined in the @SecurityDomain on WhoAmIBean
-         assertEquals("anonymous", actual);
+         
+         /** Anil Changed this to the real principal that made the call"**/
+         //assertEquals("anonymous", actual);
+         assertEquals("anybody", actual);
       }
       finally
       {




More information about the jboss-cvs-commits mailing list