Fix whitespace

This commit is contained in:
Rob Winch 2025-01-17 20:49:10 -06:00
parent f4491f388e
commit bea232237f
No known key found for this signature in database

View File

@ -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