File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 60
60
61
61
import org .springframework .cache .Cache ;
62
62
import org .springframework .cache .concurrent .ConcurrentMapCache ;
63
+ import org .springframework .cache .support .SimpleValueWrapper ;
63
64
import org .springframework .core .convert .converter .Converter ;
64
65
import org .springframework .http .HttpStatus ;
65
66
import org .springframework .http .MediaType ;
@@ -700,6 +701,7 @@ public void decodeWhenCacheAndUnknownKidShouldTriggerFetchOfJwkSet() throws JOSE
700
701
RestOperations restOperations = mock (RestOperations .class );
701
702
Cache cache = mock (Cache .class );
702
703
given (cache .get (eq (JWK_SET_URI ), eq (String .class ))).willReturn (JWK_SET );
704
+ given (cache .get (eq (JWK_SET_URI ))).willReturn (new SimpleValueWrapper (JWK_SET ));
703
705
given (restOperations .exchange (any (RequestEntity .class ), eq (String .class )))
704
706
.willReturn (new ResponseEntity <>(NEW_KID_JWK_SET , HttpStatus .OK ));
705
707
You can’t perform that action at this time.
0 commit comments