Use getAccountIdentifier in device transfer context

This commit is contained in:
Chris Eager authored and Jon Chambers committed 2026-08-11 09:12:36 -04:00
1 parent d69a5f1f33
commit b63f176ad7
2 files changed
+7 -7

No files matched your search

@@ -97,7 +97,7 @@ public class AccountsManagerDeviceTransferIntegrationTest {
when(device.getRegistrationId(IdentityType.ACI)).thenReturn(registrationId);
final Account account = mock(Account.class);
when(account.getIdentifier(IdentityType.ACI)).thenReturn(accountIdentifier);
when(account.getAccountIdentifier()).thenReturn(accountIdentifier);
final CompletableFuture<Optional<TransferArchiveResult>> displacedFuture =
accountsManager.waitForTransferArchive(account, device, Duration.ofSeconds(5));
@@ -126,7 +126,7 @@ public class AccountsManagerDeviceTransferIntegrationTest {
when(device.getRegistrationId(IdentityType.ACI)).thenReturn(registrationId);
final Account account = mock(Account.class);
when(account.getIdentifier(IdentityType.ACI)).thenReturn(accountIdentifier);
when(account.getAccountIdentifier()).thenReturn(accountIdentifier);
accountsManager.recordTransferArchiveUpload(account, deviceId, registrationId, transferArchive).join();
@@ -148,7 +148,7 @@ public class AccountsManagerDeviceTransferIntegrationTest {
when(device.getRegistrationId(IdentityType.ACI)).thenReturn(registrationId);
final Account account = mock(Account.class);
when(account.getIdentifier(IdentityType.ACI)).thenReturn(accountIdentifier);
when(account.getAccountIdentifier()).thenReturn(accountIdentifier);
accountsManager.recordTransferArchiveUpload(account, deviceId,
registrationId, transferArchiveError).join();
@@ -165,7 +165,7 @@ public class AccountsManagerDeviceTransferIntegrationTest {
when(device.getRegistrationId(IdentityType.ACI)).thenReturn(123);
final Account account = mock(Account.class);
when(account.getIdentifier(IdentityType.ACI)).thenReturn(accountIdentifier);
when(account.getAccountIdentifier()).thenReturn(accountIdentifier);
assertEquals(Optional.empty(),
accountsManager.waitForTransferArchive(account, device, Duration.ofMillis(1)).join());