mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
Fix whitespace
This commit is contained in:
parent
f4491f388e
commit
bea232237f
@ -187,8 +187,8 @@ public class WebAuthnConfigurerTests {
|
|||||||
TestingAuthenticationToken user = new TestingAuthenticationToken("user", "password", "ROLE_USER");
|
TestingAuthenticationToken user = new TestingAuthenticationToken("user", "password", "ROLE_USER");
|
||||||
SecurityContextHolder.setContext(new SecurityContextImpl(user));
|
SecurityContextHolder.setContext(new SecurityContextImpl(user));
|
||||||
PublicKeyCredentialCreationOptions options = TestPublicKeyCredentialCreationOptions
|
PublicKeyCredentialCreationOptions options = TestPublicKeyCredentialCreationOptions
|
||||||
.createPublicKeyCredentialCreationOptions()
|
.createPublicKeyCredentialCreationOptions()
|
||||||
.build();
|
.build();
|
||||||
WebAuthnRelyingPartyOperations rpOperations = mock(WebAuthnRelyingPartyOperations.class);
|
WebAuthnRelyingPartyOperations rpOperations = mock(WebAuthnRelyingPartyOperations.class);
|
||||||
ConfigMessageConverter.rpOperations = rpOperations;
|
ConfigMessageConverter.rpOperations = rpOperations;
|
||||||
given(rpOperations.createPublicKeyCredentialCreationOptions(any())).willReturn(options);
|
given(rpOperations.createPublicKeyCredentialCreationOptions(any())).willReturn(options);
|
||||||
@ -203,8 +203,8 @@ public class WebAuthnConfigurerTests {
|
|||||||
ConfigMessageConverter.converter = converter;
|
ConfigMessageConverter.converter = converter;
|
||||||
this.spring.register(ConfigMessageConverter.class).autowire();
|
this.spring.register(ConfigMessageConverter.class).autowire();
|
||||||
this.mvc.perform(post("/webauthn/register/options"))
|
this.mvc.perform(post("/webauthn/register/options"))
|
||||||
.andExpect(status().isOk())
|
.andExpect(status().isOk())
|
||||||
.andExpect(content().string(expectedBody));
|
.andExpect(content().string(expectedBody));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user