org.acegisecurity.taglibs.authz
Class AuthorizeTagTests

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

public class AuthorizeTagTests
extends junit.framework.TestCase

DOCUMENT ME!

Version:
$Id: AuthorizeTagTests.java 1738 2006-11-14 01:55:44Z benalex $
Author:
Francois Beausoleil

Constructor Summary
AuthorizeTagTests()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAlwaysReturnsUnauthorizedIfNoUserFound()
           
 void testDefaultsToNotOutputtingBodyWhenNoRequiredAuthorities()
           
 void testOutputsBodyIfOneRolePresent()
           
 void testOutputsBodyWhenAllGranted()
           
 void testOutputsBodyWhenNotGrantedSatisfied()
           
 void testPreventsBodyOutputIfNoSecurityContext()
           
 void testSkipsBodyIfNoAnyRolePresent()
           
 void testSkipsBodyWhenMissingAnAllGranted()
           
 void testSkipsBodyWhenNotGrantedUnsatisfied()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

AuthorizeTagTests

public AuthorizeTagTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testAlwaysReturnsUnauthorizedIfNoUserFound

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

testDefaultsToNotOutputtingBodyWhenNoRequiredAuthorities

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

testOutputsBodyIfOneRolePresent

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

testOutputsBodyWhenAllGranted

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

testOutputsBodyWhenNotGrantedSatisfied

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

testPreventsBodyOutputIfNoSecurityContext

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

testSkipsBodyIfNoAnyRolePresent

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

testSkipsBodyWhenMissingAnAllGranted

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

testSkipsBodyWhenNotGrantedUnsatisfied

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


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