org.acegisecurity.taglibs.authz
Class AclTagTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.acegisecurity.taglibs.authz.AclTagTests
All Implemented Interfaces:
junit.framework.Test

public class AclTagTests
extends junit.framework.TestCase

Tests AclTag.

Version:
$Id: AclTagTests.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Ben Alex

Constructor Summary
AclTagTests()
           
 
Method Summary
 void testInclusionDeniedWhenAclManagerUnawareOfObject()
           
 void testInclusionDeniedWhenNoListOfPermissionsGiven()
           
 void testInclusionDeniedWhenPrincipalDoesNotHoldAnyPermissions()
           
 void testInclusionDeniedWhenPrincipalDoesNotHoldRequiredPermissions()
           
 void testInclusionDeniedWhenSecurityContextEmpty()
           
 void testInclusionPermittedWhenDomainObjectIsNull()
           
 void testJspExceptionThrownIfHasPermissionNotValidFormat()
           
 void testOperationWhenPrincipalHoldsPermissionOfMultipleList()
           
 void testOperationWhenPrincipalHoldsPermissionOfSingleList()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AclTagTests

public AclTagTests()
Method Detail

testInclusionDeniedWhenAclManagerUnawareOfObject

public void testInclusionDeniedWhenAclManagerUnawareOfObject()
                                                      throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

testInclusionDeniedWhenNoListOfPermissionsGiven

public void testInclusionDeniedWhenNoListOfPermissionsGiven()
                                                     throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

testInclusionDeniedWhenPrincipalDoesNotHoldAnyPermissions

public void testInclusionDeniedWhenPrincipalDoesNotHoldAnyPermissions()
                                                               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

testInclusionDeniedWhenPrincipalDoesNotHoldRequiredPermissions

public void testInclusionDeniedWhenPrincipalDoesNotHoldRequiredPermissions()
                                                                    throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

testInclusionDeniedWhenSecurityContextEmpty

public void testInclusionDeniedWhenSecurityContextEmpty()
                                                 throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

testInclusionPermittedWhenDomainObjectIsNull

public void testInclusionPermittedWhenDomainObjectIsNull()
                                                  throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

testJspExceptionThrownIfHasPermissionNotValidFormat

public void testJspExceptionThrownIfHasPermissionNotValidFormat()
                                                         throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

testOperationWhenPrincipalHoldsPermissionOfMultipleList

public void testOperationWhenPrincipalHoldsPermissionOfMultipleList()
                                                             throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

testOperationWhenPrincipalHoldsPermissionOfSingleList

public void testOperationWhenPrincipalHoldsPermissionOfSingleList()
                                                           throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException


Copyright © 2004-2008 Interface21, Inc. All Rights Reserved.