String should not be compared with an Optional in DeliveryReceiptJobTest.testDelivery().

Closes #2713

// FREEBIE
This commit is contained in:
Rhodey Orbits 2015-03-17 18:10:08 -07:00 committed by Moxie Marlinspike
parent e0737451db
commit a625727853

View file

@ -39,7 +39,7 @@ public class DeliveryReceiptJobTest extends TextSecureTestCase {
ArgumentCaptor<TextSecureAddress> captor = ArgumentCaptor.forClass(TextSecureAddress.class);
verify(textSecureMessageSender).sendDeliveryReceipt(captor.capture(), eq(timestamp));
assertTrue(captor.getValue().getRelay().equals("foo"));
assertTrue(captor.getValue().getRelay().get().equals("foo"));
assertTrue(captor.getValue().getNumber().equals("+14152222222"));
}