Skip to content

Commit

Permalink
Removed unnecessary mockito stubbings
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Bandener <[email protected]>
  • Loading branch information
nibix committed Sep 25, 2024
1 parent dc50298 commit 7f5bc7d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ public void regularUserCanNotChangeObjectWithRestAdminPermissionsForNewRoles() t
restAdminPermissions().forEach(array::add);

doReturn(CType.ROLES).when(configuration).getCType();
when(configuration.getVersion()).thenReturn(2);
when(configuration.getImplementingClass()).thenCallRealMethod();
when(configuration.exists("some_role")).thenReturn(false);
when(restApiAdminPrivilegesEvaluator.containsRestApiAdminPermissions(any(Object.class))).thenCallRealMethod();
Expand All @@ -380,7 +379,6 @@ public void regularUserCanNotChangeObjectWithRestAdminPermissionsForExitingActio
@Test
public void regularUserCanNotChangeObjectWithRestAdminPermissionsForMewActionGroups() throws Exception {
doReturn(CType.ACTIONGROUPS).when(configuration).getCType();
when(configuration.getVersion()).thenReturn(2);
when(configuration.getImplementingClass()).thenCallRealMethod();
when(configuration.exists("some_ag")).thenReturn(false);
when(restApiAdminPrivilegesEvaluator.containsRestApiAdminPermissions(any(Object.class))).thenCallRealMethod();
Expand Down

0 comments on commit 7f5bc7d

Please sign in to comment.