mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 05:42:31 +00:00
Remove compile warnings in AspectJMethodSecurityInterceptorTests
This commit is contained in:
parent
9a9aafaeec
commit
10e6a6f943
@ -56,7 +56,6 @@ import java.util.List;
|
|||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
* @author Rob Winch
|
* @author Rob Winch
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
public class AspectJMethodSecurityInterceptorTests {
|
public class AspectJMethodSecurityInterceptorTests {
|
||||||
private TestingAuthenticationToken token;
|
private TestingAuthenticationToken token;
|
||||||
private AspectJMethodSecurityInterceptor interceptor;
|
private AspectJMethodSecurityInterceptor interceptor;
|
||||||
@ -77,7 +76,6 @@ public class AspectJMethodSecurityInterceptorTests {
|
|||||||
interceptor.setAccessDecisionManager(adm);
|
interceptor.setAccessDecisionManager(adm);
|
||||||
interceptor.setAuthenticationManager(authman);
|
interceptor.setAuthenticationManager(authman);
|
||||||
interceptor.setSecurityMetadataSource(mds);
|
interceptor.setSecurityMetadataSource(mds);
|
||||||
Method method = TargetObject.class.getMethod("countLength", new Class[] {String.class});
|
|
||||||
// Set up joinpoint information for the countLength method on TargetObject
|
// Set up joinpoint information for the countLength method on TargetObject
|
||||||
joinPoint = mock(ProceedingJoinPoint.class); //new MockJoinPoint(new TargetObject(), method);
|
joinPoint = mock(ProceedingJoinPoint.class); //new MockJoinPoint(new TargetObject(), method);
|
||||||
Signature sig = mock(Signature.class);
|
Signature sig = mock(Signature.class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user