summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2018-11-06 16:11:53 -0800
committer android-build-merger <android-build-merger@google.com> 2018-11-06 16:11:53 -0800
commitdfe6c07b96da7722fd7722e1f64e730a360d5075 (patch)
tree2832ce47bab5b08db77be1a951f4dfdf161404d2
parente1219c73ef01f47eae989e41771b717fa5c7145e (diff)
parent756d5ae29a8d1f96ff9296a4bb38219a4d39550b (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.java3
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);
}