Move @Mock annotations

Update a couple of tests to use the more traditional `@Mock` annotation
placement.

Issue gh-8945
This commit is contained in:
Phillip Webb 2020-08-04 00:23:01 -07:00 committed by Rob Winch
parent 2f8e835b11
commit 1e840cc854
2 changed files with 10 additions and 5 deletions

View File

@ -59,7 +59,8 @@ public class AnnotationSecurityAspectTests {
private AffirmativeBased adm; private AffirmativeBased adm;
private @Mock AuthenticationManager authman; @Mock
private AuthenticationManager authman;
private TestingAuthenticationToken anne = new TestingAuthenticationToken("anne", "", "ROLE_A"); private TestingAuthenticationToken anne = new TestingAuthenticationToken("anne", "", "ROLE_A");

View File

@ -68,13 +68,17 @@ public class AspectJMethodSecurityInterceptorTests {
private AspectJMethodSecurityInterceptor interceptor; 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; private ProceedingJoinPoint joinPoint;