Skip to content

Commit bbdd1e4

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
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,13 +324,12 @@ 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
331331
@MethodSource("getClassesToSerialize")
332-
@Disabled("This method should only be used to serialize the classes once")
332+
// @Disabled("This method should only be used to serialize the classes once")
333333
void serializeCurrentVersionClasses(Class<?> clazz) throws Exception {
334334
Files.createDirectories(currentVersionFolder);
335335
Path filePath = Paths.get(currentVersionFolder.toAbsolutePath() + "/" + clazz.getName() + ".serialized");

0 commit comments

Comments
 (0)