Skip to content

Commit b1b63b8

Browse files
Change test Serializable for Bytes
1 parent 8c37f0e commit b1b63b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/src/test/java/org/springframework/security/SpringSecurityCoreVersionSerializableTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
import org.springframework.security.saml2.provider.service.authentication.TestSaml2RedirectAuthenticationRequests;
126126
import org.springframework.security.web.authentication.WebAuthenticationDetails;
127127
import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken;
128+
import org.springframework.security.web.webauthn.api.Bytes;
128129
import org.springframework.security.web.webauthn.api.PublicKeyCredentialUserEntity;
129130
import org.springframework.security.web.webauthn.api.TestPublicKeyCredentialUserEntity;
130131

@@ -323,8 +324,7 @@ class SpringSecurityCoreVersionSerializableTests {
323324
token.setDetails(details);
324325
return token;
325326
});
326-
generatorByClassName.put(PublicKeyCredentialUserEntity.class,
327-
(r) -> TestPublicKeyCredentialUserEntity.userEntity().build());
327+
generatorByClassName.put(Bytes.class, (r) -> Bytes.random());
328328
}
329329

330330
@ParameterizedTest

0 commit comments

Comments
 (0)