@Test void testRemoveMembership() { roleMembershipService.removeMembership(roleMembership); verify(dataService).delete(ROLE_MEMBERSHIP, roleMembership); }
@RunAsSystem @Override public void removeMembership(final RoleMembership roleMembership) { dataService.delete(ROLE_MEMBERSHIP, roleMembership); }
RoleMembershipServiceImpl implements RoleMembershipService { @RunAsSystem @Override public void removeMembership(final RoleMembership roleMembership) { dataService.delete(ROLE_MEMBERSHIP, roleMembership); } }
RoleMembershipServiceImpl implements RoleMembershipService { @RunAsSystem @Override public void removeMembership(final RoleMembership roleMembership) { dataService.delete(ROLE_MEMBERSHIP, roleMembership); } RoleMembershipServiceImpl(
      UserService userService,
      RoleMembershipFactory roleMembershipFactory,
      DataService dataService,
      UserMetadata userMetadata,
      RoleMetadata roleMetadata); }
RoleMembershipServiceImpl implements RoleMembershipService { @RunAsSystem @Override public void removeMembership(final RoleMembership roleMembership) { dataService.delete(ROLE_MEMBERSHIP, roleMembership); } RoleMembershipServiceImpl(
      UserService userService,
      RoleMembershipFactory roleMembershipFactory,
      DataService dataService,
      UserMetadata userMetadata,
      RoleMetadata roleMetadata); @RunAsSystem @Override void addUserToRole(String username, String roleName); @RunAsSystem @Override void addUserToRole(final User user, final Role role); @RunAsSystem @Override void removeMembership(final RoleMembership roleMembership); @RunAsSystem @Override void updateMembership(RoleMembership roleMembership, Role newRole); @RunAsSystem @Override Collection<RoleMembership> getMemberships(Collection<Role> roles); }
RoleMembershipServiceImpl implements RoleMembershipService { @RunAsSystem @Override public void removeMembership(final RoleMembership roleMembership) { dataService.delete(ROLE_MEMBERSHIP, roleMembership); } RoleMembershipServiceImpl(
      UserService userService,
      RoleMembershipFactory roleMembershipFactory,
      DataService dataService,
      UserMetadata userMetadata,
      RoleMetadata roleMetadata); @RunAsSystem @Override void addUserToRole(String username, String roleName); @RunAsSystem @Override void addUserToRole(final User user, final Role role); @RunAsSystem @Override void removeMembership(final RoleMembership roleMembership); @RunAsSystem @Override void updateMembership(RoleMembership roleMembership, Role newRole); @RunAsSystem @Override Collection<RoleMembership> getMemberships(Collection<Role> roles);  }