Bläddra i källkod

Use Test Name Conventions

Issue gh-16385
Rob Winch 5 månader sedan
förälder
incheckning
9c054474a8

+ 2 - 2
web/src/test/java/org/springframework/security/web/webauthn/management/Webauthn4jRelyingPartyOperationsTests.java

@@ -537,7 +537,7 @@ class Webauthn4jRelyingPartyOperationsTests {
 	}
 
 	@Test
-	void shouldReturnEmptyCredentialsWhenUserIsAnonymous() {
+	void createCredentialRequestOptionsWhenAnonymousAuthentication() {
 		AnonymousAuthenticationToken authentication = new AnonymousAuthenticationToken("key", "anonymousUser",
 				Set.of(() -> "ROLE_ANONYMOUS"));
 		PublicKeyCredentialRequestOptionsRequest createRequest = new ImmutablePublicKeyCredentialRequestOptionsRequest(
@@ -549,7 +549,7 @@ class Webauthn4jRelyingPartyOperationsTests {
 	}
 
 	@Test
-	void shouldReturnEmptyCredentialsWhenAnonymousUserIsDisabled() {
+	void createCredentialRequestOptionsWhenNullAuthentication() {
 		PublicKeyCredentialRequestOptionsRequest createRequest = new ImmutablePublicKeyCredentialRequestOptionsRequest(null);
 		PublicKeyCredentialRequestOptions credentialRequestOptions = this.rpOperations
 			.createCredentialRequestOptions(createRequest);