mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 16:52:13 +00:00
Move @Mock annotations
Update a couple of tests to use the more traditional `@Mock` annotation placement. Issue gh-8945
This commit is contained in:
parent
2f8e835b11
commit
1e840cc854
@ -59,7 +59,8 @@ public class AnnotationSecurityAspectTests {
|
||||
|
||||
private AffirmativeBased adm;
|
||||
|
||||
private @Mock AuthenticationManager authman;
|
||||
@Mock
|
||||
private AuthenticationManager authman;
|
||||
|
||||
private TestingAuthenticationToken anne = new TestingAuthenticationToken("anne", "", "ROLE_A");
|
||||
|
||||
|
@ -68,13 +68,17 @@ public class AspectJMethodSecurityInterceptorTests {
|
||||
|
||||
private AspectJMethodSecurityInterceptor interceptor;
|
||||
|
||||
private @Mock AccessDecisionManager adm;
|
||||
@Mock
|
||||
private AccessDecisionManager adm;
|
||||
|
||||
private @Mock MethodSecurityMetadataSource mds;
|
||||
@Mock
|
||||
private MethodSecurityMetadataSource mds;
|
||||
|
||||
private @Mock AuthenticationManager authman;
|
||||
@Mock
|
||||
private AuthenticationManager authman;
|
||||
|
||||
private @Mock AspectJCallback aspectJCallback;
|
||||
@Mock
|
||||
private AspectJCallback aspectJCallback;
|
||||
|
||||
private ProceedingJoinPoint joinPoint;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user