org.acegisecurity.taglibs.authz
Class AuthenticationTagTests

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

public class AuthenticationTagTests
extends junit.framework.TestCase

Tests AuthenticationTag.

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

Constructor Summary
AuthenticationTagTests()
           
 
Method Summary
 void testOperationAndMethodPrefixWhenPrincipalIsAUserDetailsInstance()
           
 void testOperationWhenPrincipalIsAString()
           
 void testOperationWhenPrincipalIsAUserDetailsInstance()
           
 void testOperationWhenPrincipalIsNull()
           
 void testOperationWhenSecurityContextIsNull()
           
 void testSkipsBodyIfNullOrEmptyOperation()
           
 void testThrowsExceptionForUnrecognisedMethodPrefix()
           
 void testThrowsExceptionForUnrecognisedOperation()
           
 
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

AuthenticationTagTests

public AuthenticationTagTests()
Method Detail

testOperationAndMethodPrefixWhenPrincipalIsAUserDetailsInstance

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

testOperationWhenPrincipalIsAString

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

testOperationWhenPrincipalIsAUserDetailsInstance

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

testOperationWhenPrincipalIsNull

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

testOperationWhenSecurityContextIsNull

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

testSkipsBodyIfNullOrEmptyOperation

public void testSkipsBodyIfNullOrEmptyOperation()
                                         throws Exception
Throws:
Exception

testThrowsExceptionForUnrecognisedMethodPrefix

public void testThrowsExceptionForUnrecognisedMethodPrefix()

testThrowsExceptionForUnrecognisedOperation

public void testThrowsExceptionForUnrecognisedOperation()


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