User: starksm 
  Date: 02/03/03 10:24:17

  Modified:    src/main/org/jboss/test/security/test
                        EJBSpecUnitTestCase.java
  Log:
  The correct outcome of the stateless session ejbCreate that calls
  getCallerPrincipal is an exception
  
  Revision  Changes    Path
  1.11      +7 -3      
jbosstest/src/main/org/jboss/test/security/test/EJBSpecUnitTestCase.java
  
  Index: EJBSpecUnitTestCase.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/EJBSpecUnitTestCase.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- EJBSpecUnitTestCase.java  3 Mar 2002 07:40:50 -0000       1.10
  +++ EJBSpecUnitTestCase.java  3 Mar 2002 18:24:17 -0000       1.11
  @@ -43,7 +43,7 @@
    deployment unit. These test the basic role based access model.
    
    @author [EMAIL PROTECTED]
  - @version $Revision: 1.10 $
  + @version $Revision: 1.11 $
    */
   public class EJBSpecUnitTestCase
      extends JBossTestCase
  @@ -340,10 +340,14 @@
         obj = PortableRemoteObject.narrow(obj, StatelessSessionHome.class);
         StatelessSessionHome home = (StatelessSessionHome) obj;
         System.out.println("Found StatelessSessionHome");
  -      for(int i = 0; i < 1000; i ++)
  +      try
         {
            StatelessSession bean = home.create();
  -         bean.remove();
  +         fail("Was able to call getCallerPrincipal in ejbCreate");
  +      }
  +      catch(Exception e)
  +      {
  +         log.debug("Create failed as expected", e);
         }
         logout();
      }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to