@@ -1284,7 +1284,7 @@ void testChangePhoneNumberWithPqKeysExistingAccount() throws InterruptedExceptio
1284
1284
final Account existingAccount = AccountsHelper .generateTestAccount (targetNumber , existingAccountUuid , targetPni , new ArrayList <>(), new byte [UnidentifiedAccessUtil .UNIDENTIFIED_ACCESS_KEY_LENGTH ]);
1285
1285
when (accounts .getByE164 (targetNumber )).thenReturn (Optional .of (existingAccount ));
1286
1286
when (keysManager .getPqEnabledDevices (uuid )).thenReturn (CompletableFuture .completedFuture (List .of (Device .PRIMARY_ID , deviceId3 )));
1287
- when (keysManager .storePqLastResort (any (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1287
+ when (keysManager .storePqLastResort (any (), anyByte (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1288
1288
1289
1289
final List <Device > devices = List .of (
1290
1290
DevicesHelper .createDevice (Device .PRIMARY_ID , 0L , 101 ),
@@ -1381,7 +1381,7 @@ void testPniUpdate() throws MismatchedDevicesException {
1381
1381
final IdentityKey pniIdentityKey = new IdentityKey (Curve .generateKeyPair ().getPublicKey ());
1382
1382
1383
1383
when (keysManager .getPqEnabledDevices (any ())).thenReturn (CompletableFuture .completedFuture (Collections .emptyList ()));
1384
- when (keysManager .storeEcSignedPreKeys (any (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1384
+ when (keysManager .storeEcSignedPreKeys (any (), anyByte (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1385
1385
1386
1386
final Account updatedAccount = accountsManager .updatePniKeys (account , pniIdentityKey , newSignedKeys , null , newRegistrationIds );
1387
1387
@@ -1437,8 +1437,8 @@ void testPniPqUpdate() throws MismatchedDevicesException {
1437
1437
1438
1438
when (keysManager .getPqEnabledDevices (oldPni )).thenReturn (
1439
1439
CompletableFuture .completedFuture (List .of (Device .PRIMARY_ID )));
1440
- when (keysManager .storeEcSignedPreKeys (any (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1441
- when (keysManager .storePqLastResort (any (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1440
+ when (keysManager .storeEcSignedPreKeys (any (), anyByte (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1441
+ when (keysManager .storePqLastResort (any (), anyByte (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1442
1442
1443
1443
Map <Byte , ECSignedPreKey > oldSignedPreKeys = account .getDevices ().stream ()
1444
1444
.collect (Collectors .toMap (Device ::getId , d -> d .getSignedPreKey (IdentityType .ACI )));
@@ -1500,8 +1500,8 @@ void testPniNonPqToPqUpdate() throws MismatchedDevicesException {
1500
1500
UUID oldPni = account .getPhoneNumberIdentifier ();
1501
1501
1502
1502
when (keysManager .getPqEnabledDevices (oldPni )).thenReturn (CompletableFuture .completedFuture (List .of ()));
1503
- when (keysManager .storeEcSignedPreKeys (any (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1504
- when (keysManager .storePqLastResort (any (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1503
+ when (keysManager .storeEcSignedPreKeys (any (), anyByte (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1504
+ when (keysManager .storePqLastResort (any (), anyByte (), any ())).thenReturn (CompletableFuture .completedFuture (null ));
1505
1505
1506
1506
Map <Byte , ECSignedPreKey > oldSignedPreKeys = account .getDevices ().stream ()
1507
1507
.collect (Collectors .toMap (Device ::getId , d -> d .getSignedPreKey (IdentityType .ACI )));
0 commit comments