Skip to content

Commit

Permalink
Cosmetic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
enricovianello committed Sep 14, 2023
1 parent 5b92425 commit d635d36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;

import java.io.UnsupportedEncodingException;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;

Expand All @@ -50,6 +49,7 @@

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Sets;
import com.nimbusds.jwt.JWT;
import com.nimbusds.jwt.JWTClaimsSet;
import com.nimbusds.jwt.JWTParser;
Expand Down Expand Up @@ -563,7 +563,7 @@ public void deviceCodeWorksForDynamicallyRegisteredClient()
public void publicClientDeviceCodeWorks() throws Exception {

Optional<ClientDetailsEntity> client = clientRepo.findByClientId(PUBLIC_DEVICE_CODE_CLIENT_ID);
Set<String> scopes = new HashSet<String>();
Set<String> scopes = Sets.newHashSet();
scopes.add("openid");
scopes.add("profile");
if (client.isPresent()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;

import java.util.HashSet;
import java.util.Optional;
import java.util.Set;

Expand All @@ -49,6 +48,7 @@

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Sets;

import it.infn.mw.iam.IamLoginService;
import it.infn.mw.iam.persistence.repository.client.IamClientRepository;
Expand Down Expand Up @@ -135,7 +135,7 @@ public void testIntrospectionResponse() throws Exception {
public void testDeviceCodeStructuredScopeRequest() throws Exception {

Optional<ClientDetailsEntity> client = clientRepo.findByClientId(DEVICE_CODE_CLIENT_ID);
Set<String> scopes = new HashSet<String>();
Set<String> scopes = Sets.newHashSet();
scopes.add("storage.read:/");
scopes.add("openid");
scopes.add("profile");
Expand Down

0 comments on commit d635d36

Please sign in to comment.