Merge "Correct illegal mockito usage." am: 5bb1e8c9bc am: 7901714521

am: 756d5ae29a

Change-Id: Ibae90ae05b36129a34a358bb60ffd7ad23e3c4a4
This commit is contained in:
Alex Light
2018-11-06 16:11:53 -08:00
committed by android-build-merger

View File

@@ -70,7 +70,8 @@ public class ZenModeFilteringTest extends UiServiceTestCase {
private NotificationRecord getNotificationRecord(NotificationChannel c) {
StatusBarNotification sbn = mock(StatusBarNotification.class);
when(sbn.getNotification()).thenReturn(mock(Notification.class));
Notification notification = mock(Notification.class);
when(sbn.getNotification()).thenReturn(notification);
return new NotificationRecord(mContext, sbn, c);
}