diff options
author | Moxie Marlinspike <moxie@thoughtcrime.org> | 2015-03-03 11:20:36 -0800 |
---|---|---|
committer | Moxie Marlinspike <moxie@thoughtcrime.org> | 2015-03-03 11:20:36 -0800 |
commit | 327f82be41058ca1eaf1b501dc91426f8555d892 (patch) | |
tree | 5419b592ced22f595de3423bc72c007ab1c4836a /tests/src/test/java/org/whispersystems/libaxolotl/SessionCipherTest.java | |
parent | d53ed1bb0037ac8ea9717844ae4ab71e5fb75563 (diff) |
Use more generic AxololAddress for identifying recipients.
Diffstat (limited to 'tests/src/test/java/org/whispersystems/libaxolotl/SessionCipherTest.java')
-rw-r--r-- | tests/src/test/java/org/whispersystems/libaxolotl/SessionCipherTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/test/java/org/whispersystems/libaxolotl/SessionCipherTest.java b/tests/src/test/java/org/whispersystems/libaxolotl/SessionCipherTest.java index e956ed77..a3b5db4c 100644 --- a/tests/src/test/java/org/whispersystems/libaxolotl/SessionCipherTest.java +++ b/tests/src/test/java/org/whispersystems/libaxolotl/SessionCipherTest.java @@ -52,11 +52,11 @@ public class SessionCipherTest extends TestCase { AxolotlStore aliceStore = new InMemoryAxolotlStore(); AxolotlStore bobStore = new InMemoryAxolotlStore(); - aliceStore.storeSession(2L, 1, aliceSessionRecord); - bobStore.storeSession(3L, 1, bobSessionRecord); + aliceStore.storeSession(new AxolotlAddress("+14159999999", 1), aliceSessionRecord); + bobStore.storeSession(new AxolotlAddress("+14158888888", 1), bobSessionRecord); - SessionCipher aliceCipher = new SessionCipher(aliceStore, 2L, 1); - SessionCipher bobCipher = new SessionCipher(bobStore, 3L, 1); + SessionCipher aliceCipher = new SessionCipher(aliceStore, new AxolotlAddress("+14159999999", 1)); + SessionCipher bobCipher = new SessionCipher(bobStore, new AxolotlAddress("+14158888888", 1)); byte[] alicePlaintext = "This is a plaintext message.".getBytes(); CiphertextMessage message = aliceCipher.encrypt(alicePlaintext); |