portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/turbine TestAccessController.java
Date Wed, 29 May 2002 04:15:09 GMT
paulsp      02/05/28 21:15:09

  Modified:    src/java/org/apache/jetspeed/services/security/turbine Tag:
                        security_14 TestAccessController.java
  Log:
  Add test with NULL user
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +4 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/turbine/Attic/TestAccessController.java
  
  Index: TestAccessController.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/turbine/Attic/TestAccessController.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- TestAccessController.java	27 May 2002 13:04:25 -0000	1.1.2.2
  +++ TestAccessController.java	29 May 2002 04:15:08 -0000	1.1.2.3
  @@ -92,7 +92,7 @@
    * TestAccessController
    *
    * @author <a href="paulsp@apache.org">Paul Spencer</a>
  - * @version $Id: TestAccessController.java,v 1.1.2.2 2002/05/27 13:04:25 paulsp Exp $
  + * @version $Id: TestAccessController.java,v 1.1.2.3 2002/05/29 04:15:08 paulsp Exp $
    */
   public class TestAccessController extends TestCase
   {
  @@ -212,14 +212,17 @@
           assertEquals( "Admin user has view access to " + ADMIN_PORTLET, true, JetspeedPortalAccessController.checkPermission(
adminUser, adminEntry, "view"));
           assertEquals( "Turbine user DOES NOT have view access to " + ADMIN_PORTLET, false,
JetspeedPortalAccessController.checkPermission( turbineUser, adminEntry, "view"));
           assertEquals( "Anonymous user DOES NOT have view access to " + ADMIN_PORTLET, false,
JetspeedPortalAccessController.checkPermission( anonymousUser, adminEntry, "view"));
  +        assertEquals( "null user DOES NOT have view access to " + ADMIN_PORTLET, false,
JetspeedPortalAccessController.checkPermission( (JetspeedUser) null, adminEntry, "view"));
           
           assertEquals( "Admin user has view access to " + USER_PORTLET, true, JetspeedPortalAccessController.checkPermission(
adminUser, userEntry, "view"));
           assertEquals( "Turbine user has view access to " + USER_PORTLET, true, JetspeedPortalAccessController.checkPermission(
turbineUser, userEntry, "view"));
           assertEquals( "Anonymous user DOES NOT have view access to " + USER_PORTLET, false,
JetspeedPortalAccessController.checkPermission( anonymousUser, userEntry, "view"));
  +        assertEquals( "null user DOES NOT have view access to " + USER_PORTLET, false,
JetspeedPortalAccessController.checkPermission( (JetspeedUser) null, userEntry, "view"));
           
           assertEquals( "Admin user has view access to " + ALL_PORTLET, true, JetspeedPortalAccessController.checkPermission(
adminUser, allEntry, "view"));
           assertEquals( "Turbine user has view access to " + ALL_PORTLET, true, JetspeedPortalAccessController.checkPermission(
turbineUser, allEntry, "view"));
           assertEquals( "Anonymous user has view access to " + ALL_PORTLET, true, JetspeedPortalAccessController.checkPermission(
anonymousUser, allEntry, "view"));
  +        assertEquals( "null user has view access to " + ALL_PORTLET, true, JetspeedPortalAccessController.checkPermission(
(JetspeedUser) null, allEntry, "view"));
       }
       /*
        * Setup Turbine environment
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message