From d8b5f770e92e18718d2c21c66a1770d036e92d51 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Wed, 17 Dec 2008 00:31:17 +0000 Subject: [PATCH] Added warning suppression for deprecation. --- .../MethodDefinitionSourceAdvisorTests.java | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/core/src/test/java/org/springframework/security/intercept/method/aopalliance/MethodDefinitionSourceAdvisorTests.java b/core/src/test/java/org/springframework/security/intercept/method/aopalliance/MethodDefinitionSourceAdvisorTests.java index 335bc055d8..ab4c11d861 100644 --- a/core/src/test/java/org/springframework/security/intercept/method/aopalliance/MethodDefinitionSourceAdvisorTests.java +++ b/core/src/test/java/org/springframework/security/intercept/method/aopalliance/MethodDefinitionSourceAdvisorTests.java @@ -23,24 +23,14 @@ import org.springframework.security.TargetObject; import org.springframework.security.intercept.method.MapBasedMethodDefinitionSource; import org.springframework.security.intercept.method.MethodDefinitionSourceEditor; - /** * Tests {@link MethodDefinitionSourceAdvisor}. * * @author Ben Alex * @version $Id$ */ +@SuppressWarnings("deprecation") public class MethodDefinitionSourceAdvisorTests extends TestCase { - //~ Constructors =================================================================================================== - - public MethodDefinitionSourceAdvisorTests() { - super(); - } - - public MethodDefinitionSourceAdvisorTests(String arg0) { - super(arg0); - } - //~ Methods ======================================================================================================== private MethodSecurityInterceptor getInterceptor() { @@ -65,7 +55,7 @@ public class MethodDefinitionSourceAdvisorTests extends TestCase { public void testAdvisorReturnsFalseWhenMethodInvocationNotDefined() throws Exception { - Class clazz = TargetObject.class; + Class clazz = TargetObject.class; Method method = clazz.getMethod("makeLowerCase", new Class[] {String.class}); MethodDefinitionSourceAdvisor advisor = new MethodDefinitionSourceAdvisor(getInterceptor()); @@ -74,7 +64,7 @@ public class MethodDefinitionSourceAdvisorTests extends TestCase { public void testAdvisorReturnsTrueWhenMethodInvocationIsDefined() throws Exception { - Class clazz = TargetObject.class; + Class clazz = TargetObject.class; Method method = clazz.getMethod("countLength", new Class[] {String.class}); MethodDefinitionSourceAdvisor advisor = new MethodDefinitionSourceAdvisor(getInterceptor()); @@ -93,7 +83,7 @@ public class MethodDefinitionSourceAdvisorTests extends TestCase { } public void testUnsupportedOperations() throws Throwable { - Class clazz = TargetObject.class; + Class clazz = TargetObject.class; Method method = clazz.getMethod("countLength", new Class[] {String.class}); MethodDefinitionSourceAdvisor.InternalMethodInvocation imi = new MethodDefinitionSourceAdvisor(getInterceptor()).new InternalMethodInvocation(method, clazz);