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 6060
6161import org .springframework .cache .Cache ;
6262import org .springframework .cache .concurrent .ConcurrentMapCache ;
63+ import org .springframework .cache .support .SimpleValueWrapper ;
6364import org .springframework .core .convert .converter .Converter ;
6465import org .springframework .http .HttpStatus ;
6566import org .springframework .http .MediaType ;
@@ -700,6 +701,7 @@ public void decodeWhenCacheAndUnknownKidShouldTriggerFetchOfJwkSet() throws JOSE
700701 RestOperations restOperations = mock (RestOperations .class );
701702 Cache cache = mock (Cache .class );
702703 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 ));
703705 given (restOperations .exchange (any (RequestEntity .class ), eq (String .class )))
704706 .willReturn (new ResponseEntity <>(NEW_KID_JWK_SET , HttpStatus .OK ));
705707
You can’t perform that action at this time.
0 commit comments