diff options
| author | 2018-11-06 16:11:53 -0800 | |
|---|---|---|
| committer | 2018-11-06 16:11:53 -0800 | |
| commit | dfe6c07b96da7722fd7722e1f64e730a360d5075 (patch) | |
| tree | 2832ce47bab5b08db77be1a951f4dfdf161404d2 | |
| parent | e1219c73ef01f47eae989e41771b717fa5c7145e (diff) | |
| parent | 756d5ae29a8d1f96ff9296a4bb38219a4d39550b (diff) | |
Merge "Correct illegal mockito usage." am: 5bb1e8c9bc am: 7901714521
am: 756d5ae29a
Change-Id: Ibae90ae05b36129a34a358bb60ffd7ad23e3c4a4
| -rw-r--r-- | services/tests/uiservicestests/src/com/android/server/notification/ZenModeFilteringTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/tests/uiservicestests/src/com/android/server/notification/ZenModeFilteringTest.java b/services/tests/uiservicestests/src/com/android/server/notification/ZenModeFilteringTest.java index ae0e35b80dd2..4018eef6c1ed 100644 --- a/services/tests/uiservicestests/src/com/android/server/notification/ZenModeFilteringTest.java +++ b/services/tests/uiservicestests/src/com/android/server/notification/ZenModeFilteringTest.java @@ -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); } |