Updates for org.apache.commons.lang3.RandomStringUtils deprecations

This commit is contained in:
Chris Eager
2024-11-14 15:52:42 -06:00
committed by Chris Eager
parent 93f4a91ebf
commit ecbb2f1399
18 changed files with 53 additions and 53 deletions

View File

@@ -121,8 +121,8 @@ class SecureValueRecovery2ClientTest {
@Test
void deleteStoredData() {
final String username = RandomStringUtils.randomAlphabetic(16);
final String password = RandomStringUtils.randomAlphanumeric(32);
final String username = RandomStringUtils.secure().nextAlphabetic(16);
final String password = RandomStringUtils.secure().nextAlphanumeric(32);
when(credentialsGenerator.generateForUuid(accountUuid)).thenReturn(
new ExternalServiceCredentials(username, password));
@@ -136,8 +136,8 @@ class SecureValueRecovery2ClientTest {
@Test
void deleteStoredDataFailure() {
final String username = RandomStringUtils.randomAlphabetic(16);
final String password = RandomStringUtils.randomAlphanumeric(32);
final String username = RandomStringUtils.secure().nextAlphabetic(16);
final String password = RandomStringUtils.secure().nextAlphanumeric(32);
when(credentialsGenerator.generateForUuid(accountUuid)).thenReturn(
new ExternalServiceCredentials(username, password));