I haven't setup the Acegi Security Eclipse project file to support execution of the BankTests unit test within the IDE, as it relies on generation of the /samples/attributes/target/commons-attributes/ directory, which contains the BankService$__attributeRepository.java file. If you (i) add that directory as a source folder to the Eclipse project and (ii) add MAVEN_REPO/commons-attributes/jars/commons-attributes-api-2.1.jar, it will work fine (I just ran it against CVS head with the steps described):
Code:
2005-02-11 06:28:25,975 DEBUG net.sf.acegisecurity.intercept.AbstractSecurityInterceptor - Secure object: Invocation: method 'balance', arguments [1]; target is of class [sample.attributes.BankServiceImpl]; ConfigAttributes: [ROLE_TELLER, ROLE_PERMISSION_BALANCE]
2005-02-11 06:28:25,975 DEBUG net.sf.acegisecurity.providers.ProviderManager - Authentication attempt using net.sf.acegisecurity.providers.TestingAuthenticationProvider
2005-02-11 06:28:25,975 DEBUG net.sf.acegisecurity.intercept.AbstractSecurityInterceptor - Authenticated: net.sf.acegisecurity.providers.TestingAuthenticationToken@12d7a10: Username: test; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_TELLER, ROLE_PERMISSION_LIST
2005-02-11 06:28:25,991 DEBUG net.sf.acegisecurity.intercept.AbstractSecurityInterceptor - Secure object: Invocation: method 'listAccounts', arguments []; target is of class [sample.attributes.BankServiceImpl]; ConfigAttributes: [ROLE_TELLER, ROLE_PERMISSION_LIST]
2005-02-11 06:28:26,007 DEBUG net.sf.acegisecurity.providers.ProviderManager - Authentication attempt using net.sf.acegisecurity.providers.TestingAuthenticationProvider
2005-02-11 06:28:26,007 DEBUG net.sf.acegisecurity.intercept.AbstractSecurityInterceptor - Authenticated: net.sf.acegisecurity.providers.TestingAuthenticationToken@6d084b: Username: test; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_TELLER, ROLE_PERMISSION_LIST
2005-02-11 06:28:26,007 DEBUG net.sf.acegisecurity.intercept.AbstractSecurityInterceptor - Authorization successful
2005-02-11 06:28:26,007 DEBUG net.sf.acegisecurity.intercept.AbstractSecurityInterceptor - RunAsManager did not change Authentication object