mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-10-23 02:38:48 +00:00
Fix checkstyle
This commit is contained in:
parent
3656e7ad8c
commit
1213dbe76f
@ -66,7 +66,7 @@ public class OAuth2AuthorizationServerJackson2ModuleTests {
|
|||||||
public void readValueWhenOAuth2AuthorizationAttributesThenSuccess() throws Exception {
|
public void readValueWhenOAuth2AuthorizationAttributesThenSuccess() throws Exception {
|
||||||
Authentication principal = new UsernamePasswordAuthenticationToken("principal", "credentials");
|
Authentication principal = new UsernamePasswordAuthenticationToken("principal", "credentials");
|
||||||
OAuth2Authorization authorization = TestOAuth2Authorizations.authorization()
|
OAuth2Authorization authorization = TestOAuth2Authorizations.authorization()
|
||||||
.attributes(attrs -> attrs.put(Principal.class.getName(), principal))
|
.attributes((attrs) -> attrs.put(Principal.class.getName(), principal))
|
||||||
.build();
|
.build();
|
||||||
Map<String, Object> attributes = authorization.getAttributes();
|
Map<String, Object> attributes = authorization.getAttributes();
|
||||||
String json = this.objectMapper.writeValueAsString(attributes);
|
String json = this.objectMapper.writeValueAsString(attributes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user