Grails 2.4.4 Testing for permission where spring security code is being used
问题 I am using spock for may application testing and using Grails 2.4.4. I have done domain, controller, and service unit testing. But in controller sections I am stuck with the role wise access. For authentication I am using Spring Security Core Plugin. Below is my sample code. @Secured(["IS_AUTHENTICATED_FULLY"]) def index(Integer max) { } @Secured(["ROLE_A","ROLE_B"]) def create() { respond new DomainName(params) } @Transactional @Secured(["ROLE_A","ROLE_B"]) def save(DomainName