Merge "Correct illegal mockito usage." am: 5bb1e8c9bc
am: 7901714521
Change-Id: I2eb72a34d8fa13514ad8946937972a725638711c
This commit is contained in:
@@ -70,7 +70,8 @@ public class ZenModeFilteringTest extends UiServiceTestCase {
|
|||||||
|
|
||||||
private NotificationRecord getNotificationRecord(NotificationChannel c) {
|
private NotificationRecord getNotificationRecord(NotificationChannel c) {
|
||||||
StatusBarNotification sbn = mock(StatusBarNotification.class);
|
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);
|
return new NotificationRecord(mContext, sbn, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user