Skip to content

Commit

Permalink
Move @mock annotations
Browse files Browse the repository at this point in the history
Update a couple of tests to use the more traditional `@Mock` annotation
placement.

Issue gh-8945
  • Loading branch information
philwebb authored and rwinch committed Aug 24, 2020
1 parent 2f8e835 commit 1e840cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1e840cc

Please sign in to comment.