Merge "Correct illegal mockito usage."

This commit is contained in:
Alex Light
2018-11-06 23:28:15 +00:00
committed by Gerrit Code Review

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);
}