test.integration.org.grails.plugins.springsecurity.taglib
Class AuthorizeTagLibTests

Integration tests for AuthorizeTagLib.

author:
Burt Beckwith

Field Summary
 Expando _user
           
 def transactional
           
 
Constructor Summary
AuthorizeTagLibTests()
           
 
Method Summary
void authenticate(String roles)
          
void authenticate(def principal, String roles)
          
def parseRoles(String roles)
          
void tearDown()
          
void testIfAllGranted()
           Test ifAllGranted().
void testIfAnyGranted()
           Test ifAnyGranted().
void testIfNotGrantedMissingRole()
           Test ifNotGranted().
void testIsLoggedInTrue()
           Test isLoggedIn().
void testIsNotLoggedIn()
           Test isNotLoggedIn().
void testLoggedInUserInfoWithDomainClass()
           Test loggedInUserInfo() for a principal that has a 'domainClass' property.
void testLoggedInUserInfoWithoutDomainClass()
           Test loggedInUserInfo() for a principal that doesn't have a 'domainClass' property.
void testLoggedInUsername()
          
 

Constructor Detail

AuthorizeTagLibTests

AuthorizeTagLibTests()


Method Detail

authenticate

void authenticate(String roles)


authenticate

void authenticate(def principal, String roles)


parseRoles

def parseRoles(String roles)


tearDown

void tearDown()


testIfAllGranted

void testIfAllGranted()
Test ifAllGranted().


testIfAnyGranted

void testIfAnyGranted()
Test ifAnyGranted().


testIfNotGrantedMissingRole

void testIfNotGrantedMissingRole()
Test ifNotGranted().


testIsLoggedInTrue

void testIsLoggedInTrue()
Test isLoggedIn().


testIsNotLoggedIn

void testIsNotLoggedIn()
Test isNotLoggedIn().


testLoggedInUserInfoWithDomainClass

void testLoggedInUserInfoWithDomainClass()
Test loggedInUserInfo() for a principal that has a 'domainClass' property.


testLoggedInUserInfoWithoutDomainClass

void testLoggedInUserInfoWithoutDomainClass()
Test loggedInUserInfo() for a principal that doesn't have a 'domainClass' property.


testLoggedInUsername

void testLoggedInUsername()