Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed May 23, 2024
1 parent f990b30 commit 52ed94d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void shouldDeduplicateListOfGroupsSpecified() {
when(groupRepository.findByName("group2")).thenReturn(group2);
when(groupRepository.findByNameAndOrganisationId(Group.Everyone, orgId)).thenReturn(group1);

userService.addToGroups(user, "group1|group2|group1");
userService.addToGroups(user, "group1,group2,group1");
verify(userGroupRepository, times(3)).save(userGroupArgumentCaptor.capture());

List<UserGroup> allValues = userGroupArgumentCaptor.getAllValues();
Expand Down

0 comments on commit 52ed94d

Please sign in to comment.