Skip to content

Commit

Permalink
Include missing mocks (#11714)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilvam authored May 25, 2017
1 parent 03f3610 commit 9fc1ba9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ public void testLoginAsData() throws Exception {
when( roleAPI.loadCMSAdminRole() ).thenReturn( loginAsRole );
when( roleAPI.doesUserHaveRoles(userId1, rolesId) ).thenReturn( true ) ;
when( roleAPI.doesUserHaveRoles(userId2, rolesId) ).thenReturn( false ) ;
when( roleAPI.findRoleByFQN(Role.SYSTEM + " --> " + Role.LOGIN_AS) ).thenReturn( loginAsRole ) ;
when( roleAPI.doesUserHaveRole(user3, loginAsRole) ).thenReturn( true ) ;
when( webResource.init(null, true, request, true, null)).thenReturn(initDataObject);
when( initDataObject.getUser()).thenReturn(user3);

Expand Down

0 comments on commit 9fc1ba9

Please sign in to comment.