Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
haiphucnguyen committed Oct 17, 2024
1 parent 87e0039 commit 9c23220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.stream.Collectors;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
Expand Down Expand Up @@ -39,7 +38,7 @@ public FwUserDetails(User user) {
user.getAuthorities().stream()
.map(Authority::getName)
.map(SimpleGrantedAuthority::new)
.collect(Collectors.toList());
.toList();

for (GrantedAuthority grantedAuthority : grantedAuthorities) {
Assert.notNull(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ void testOrganizationToOrganizationDTO() {
() ->
assertThat(organizationDTO.getTeams())
.extracting("id")
.containsExactly(1L, 2L));
.containsAnyOf(1L, 2L));
}
}

0 comments on commit 9c23220

Please sign in to comment.