mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 06:46:53 +00:00
Encapsulate device ID in ProvisioningAddress
This commit is contained in:
1 parent
6a428b4da9
commit
2bc4412d66
4 files changed
+13
-7
No files matched your search
+1
-1
@@ -93,7 +93,7 @@ class ProvisioningControllerTest {
|
||||
provisioningMessageCaptor.capture());
|
||||
|
||||
assertEquals(destination, provisioningAddressCaptor.getValue().getAddress());
|
||||
assertEquals(0, provisioningAddressCaptor.getValue().getDeviceId());
|
||||
assertEquals(ProvisioningAddress.DEVICE_ID, provisioningAddressCaptor.getValue().getDeviceId());
|
||||
|
||||
assertArrayEquals(messageBody, provisioningMessageCaptor.getValue());
|
||||
}
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ class ProvisioningManagerTest {
|
||||
|
||||
@Test
|
||||
void sendProvisioningMessage() {
|
||||
final ProvisioningAddress address = new ProvisioningAddress("address", (byte) 0);
|
||||
final ProvisioningAddress address = ProvisioningAddress.create("address");
|
||||
|
||||
final byte[] content = new byte[16];
|
||||
new Random().nextBytes(content);
|
||||
@@ -64,7 +64,7 @@ class ProvisioningManagerTest {
|
||||
|
||||
@Test
|
||||
void removeListener() {
|
||||
final ProvisioningAddress address = new ProvisioningAddress("address", (byte) 0);
|
||||
final ProvisioningAddress address = ProvisioningAddress.create("address");
|
||||
|
||||
final byte[] content = new byte[16];
|
||||
new Random().nextBytes(content);
|
||||
|
||||
Reference in new issue
Block a user