From 2d3d5ceb8d21eb213b67cf12e43bae8650009f44 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sat, 20 Oct 2007 23:17:56 +0000 Subject: [PATCH] Tidying. --- .../InterceptMethodsBeanDefinitionDecorator.java | 2 +- .../InterceptMethodsBeanDefinitionDecoratorTests.java | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/core/src/main/java/org/springframework/security/config/InterceptMethodsBeanDefinitionDecorator.java b/core/src/main/java/org/springframework/security/config/InterceptMethodsBeanDefinitionDecorator.java index 64bf7aea3e..56ad3a98d8 100644 --- a/core/src/main/java/org/springframework/security/config/InterceptMethodsBeanDefinitionDecorator.java +++ b/core/src/main/java/org/springframework/security/config/InterceptMethodsBeanDefinitionDecorator.java @@ -15,7 +15,7 @@ import java.util.List; import java.util.Iterator; /** - * @author luke + * @author Luke Taylor * @version $Id$ */ public class InterceptMethodsBeanDefinitionDecorator extends AbstractInterceptorDrivenBeanDefinitionDecorator { diff --git a/core/src/test/java/org/springframework/security/config/InterceptMethodsBeanDefinitionDecoratorTests.java b/core/src/test/java/org/springframework/security/config/InterceptMethodsBeanDefinitionDecoratorTests.java index efefe7c6dd..ba2308ddee 100644 --- a/core/src/test/java/org/springframework/security/config/InterceptMethodsBeanDefinitionDecoratorTests.java +++ b/core/src/test/java/org/springframework/security/config/InterceptMethodsBeanDefinitionDecoratorTests.java @@ -2,7 +2,6 @@ package org.springframework.security.config; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.security.context.SecurityContextHolder; -import org.springframework.security.context.SecurityContext; import org.springframework.security.providers.UsernamePasswordAuthenticationToken; import org.springframework.security.GrantedAuthority; import org.springframework.security.GrantedAuthorityImpl; @@ -13,7 +12,7 @@ import static org.junit.Assert.*; import org.junit.*; /** - * @author luke + * @author Luke Taylor * @version $Id$ */ public class InterceptMethodsBeanDefinitionDecoratorTests { @@ -45,12 +44,7 @@ public class InterceptMethodsBeanDefinitionDecoratorTests { @Test public void targetShouldAllowUnprotectedMethodInvocationWithNoContext() { - -// UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken("Test", "Password", -// new GrantedAuthority[] {new GrantedAuthorityImpl("MOCK_LOWER")}); - target.unprotected(); - } @Test @@ -84,6 +78,4 @@ public class InterceptMethodsBeanDefinitionDecoratorTests { } catch (AccessDeniedException expected) { } } - - }