mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-03 20:09:18 +00:00
Tidying.
This commit is contained in:
parent
5d389d953d
commit
1ca2e6e6fc
@ -14,13 +14,12 @@ import org.springframework.security.core.Authentication;
|
||||
* @version $Id$
|
||||
*/
|
||||
public class RoleVoterTests {
|
||||
|
||||
// Vote on attribute list that has two attributes A and C (i.e. one matching)
|
||||
@Test
|
||||
public void oneMatchingAttributeGrantsAccess() {
|
||||
RoleVoter voter = new RoleVoter();
|
||||
voter.setRolePrefix("");
|
||||
Authentication userAB = new TestingAuthenticationToken("user","pass", "A", "B");
|
||||
// Vote on attribute list that has two attributes A and C (i.e. only one matching)
|
||||
assertEquals(AccessDecisionVoter.ACCESS_GRANTED, voter.vote(userAB, this, SecurityConfig.createList("A","C")));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user