From 63cd037188299f2e9f5b1fc673b4168717138cfd Mon Sep 17 00:00:00 2001 From: Josh Cummings <3627351+jzheaux@users.noreply.github.com> Date: Fri, 17 Apr 2026 11:15:42 -0600 Subject: [PATCH] Fix Unit Test Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com> --- .../management/Webauthn4jRelyingPartyOperationsTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webauthn/src/test/java/org/springframework/security/web/webauthn/management/Webauthn4jRelyingPartyOperationsTests.java b/webauthn/src/test/java/org/springframework/security/web/webauthn/management/Webauthn4jRelyingPartyOperationsTests.java index 163e2d15f6..3872d9feed 100644 --- a/webauthn/src/test/java/org/springframework/security/web/webauthn/management/Webauthn4jRelyingPartyOperationsTests.java +++ b/webauthn/src/test/java/org/springframework/security/web/webauthn/management/Webauthn4jRelyingPartyOperationsTests.java @@ -488,7 +488,7 @@ class Webauthn4jRelyingPartyOperationsTests { * https://www.w3.org/TR/webauthn-3/#sctn-registering-a-new-credential * * 19. Verify that the "alg" parameter in the credential public key in authData - * matches the alg attribute of one of the items in options.pubKeyCredParams. + * matches the alg attribute of one of the items in pkOptions.pubKeyCredParams. */ @Test void registerCredentialWhenAlgDoesNotMatchOptions() { @@ -503,7 +503,7 @@ class Webauthn4jRelyingPartyOperationsTests { options, new RelyingPartyPublicKey(publicKey, this.label)); assertThatRuntimeException().isThrownBy(() -> this.rpOperations.registerCredential(registrationRequest)) - .withMessageContaining("options.pubKeyCredParams"); + .withMessageContaining("pkOptions.pubKeyCredParams"); } /**