test.unit.org.codehaus.groovy.grails.plugins.springsecurity
Class AuthorizeToolsTests

Unit tests for AuthorizeTools.

author:
Burt Beckwith

 
Constructor Summary
AuthorizeToolsTests()
           
 
Method Summary
void assertSameContents(def c1, def c2)
           Check that two collections contain the same data, independent of collection class and order.
void testAuthoritiesToRoles()
           Test authoritiesToRoles().
void testAuthoritiesToRolesNullAuthority()
           Test authoritiesToRoles() when there is an authority with a null string.
void testGetPrincipalAuthorities()
           Test getPrincipalAuthorities().
void testGetPrincipalAuthoritiesNoAuth()
           Test getPrincipalAuthorities() when not authenticated.
void testGetPrincipalAuthoritiesNoRoles()
           Test getPrincipalAuthorities() when not authenticated.
void testParseAuthoritiesString()
           Test parseAuthoritiesString().
void testRetainAll()
           Test retainAll().
void testRolesToAuthorities()
           Test rolesToAuthorities().
 

Constructor Detail

AuthorizeToolsTests

AuthorizeToolsTests()


Method Detail

assertSameContents

void assertSameContents(def c1, def c2)
Check that two collections contain the same data, independent of collection class and order.


testAuthoritiesToRoles

void testAuthoritiesToRoles()
Test authoritiesToRoles().


testAuthoritiesToRolesNullAuthority

void testAuthoritiesToRolesNullAuthority()
Test authoritiesToRoles() when there is an authority with a null string.


testGetPrincipalAuthorities

void testGetPrincipalAuthorities()
Test getPrincipalAuthorities().


testGetPrincipalAuthoritiesNoAuth

void testGetPrincipalAuthoritiesNoAuth()
Test getPrincipalAuthorities() when not authenticated.


testGetPrincipalAuthoritiesNoRoles

void testGetPrincipalAuthoritiesNoRoles()
Test getPrincipalAuthorities() when not authenticated.


testParseAuthoritiesString

void testParseAuthoritiesString()
Test parseAuthoritiesString().


testRetainAll

void testRetainAll()
Test retainAll().


testRolesToAuthorities

void testRolesToAuthorities()
Test rolesToAuthorities().