From 36a955e1971b25956e2ceeb0a6028fc5fa1c13de Mon Sep 17 00:00:00 2001 From: Francois Beausoleil Date: Tue, 23 Mar 2004 17:33:47 +0000 Subject: [PATCH] * test/net/sf/acegisecurity/taglibs/authz/AuthorizeTagTests.java: Removed testUsesAllAuthoritiesToDetermineAccess(), because it wasn't asserting anything. Needs to be rewritten. --- .../taglibs/authz/AuthorizeTagTests.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/core/src/test/java/org/acegisecurity/taglibs/authz/AuthorizeTagTests.java b/core/src/test/java/org/acegisecurity/taglibs/authz/AuthorizeTagTests.java index 32afcfae35..ee77d641aa 100644 --- a/core/src/test/java/org/acegisecurity/taglibs/authz/AuthorizeTagTests.java +++ b/core/src/test/java/org/acegisecurity/taglibs/authz/AuthorizeTagTests.java @@ -100,19 +100,6 @@ public class AuthorizeTagTests extends TestCase { Tag.SKIP_BODY, authorizeTag.doStartTag()); } - public void testUsesAllAuthoritiesToDetermineAccess() { - authorizeTag.setIfAllGranted("ROLE_SUPERVISOR,ROLE_BANKER"); - authorizeTag.setIfAnyGranted("ROLE_BANKER"); - authorizeTag.setIfNotGranted("ROLE_RESTRICTED"); - - currentUser = new TestingAuthenticationToken("abc", "123", - new GrantedAuthority[] {new GrantedAuthorityImpl( - "ROLE_SUPERVISOR"), new GrantedAuthorityImpl( - "ROLE_BANKER"), new GrantedAuthorityImpl( - "ROLE_RESTRICTED"),}); - context.setAuthentication(currentUser); - } - protected void setUp() throws Exception { super.setUp();