From 1ca2e6e6fc1f7e2bb1222dfd161a6dc345d90239 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Mon, 13 Jul 2009 23:12:32 +0000 Subject: [PATCH] Tidying. --- .../springframework/security/access/vote/RoleVoterTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/test/java/org/springframework/security/access/vote/RoleVoterTests.java b/core/src/test/java/org/springframework/security/access/vote/RoleVoterTests.java index e82e96af35..01c4afd991 100644 --- a/core/src/test/java/org/springframework/security/access/vote/RoleVoterTests.java +++ b/core/src/test/java/org/springframework/security/access/vote/RoleVoterTests.java @@ -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"))); } }