From a625727853fcfb0b8658433b4c95b448e1568fd9 Mon Sep 17 00:00:00 2001 From: Rhodey Orbits Date: Tue, 17 Mar 2015 18:10:08 -0700 Subject: [PATCH] String should not be compared with an Optional in DeliveryReceiptJobTest.testDelivery(). Closes #2713 // FREEBIE --- .../org/thoughtcrime/securesms/jobs/DeliveryReceiptJobTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/androidTest/java/org/thoughtcrime/securesms/jobs/DeliveryReceiptJobTest.java b/androidTest/java/org/thoughtcrime/securesms/jobs/DeliveryReceiptJobTest.java index f71d54f1e7..0291bda2dc 100644 --- a/androidTest/java/org/thoughtcrime/securesms/jobs/DeliveryReceiptJobTest.java +++ b/androidTest/java/org/thoughtcrime/securesms/jobs/DeliveryReceiptJobTest.java @@ -39,7 +39,7 @@ public class DeliveryReceiptJobTest extends TextSecureTestCase { ArgumentCaptor 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")); }