Merge "Fix important person notification ranking test" into rvc-dev am: ae97b108aa
Change-Id: I565c6f29983ab6333e464af05168ffb7d48a6852
This commit is contained in:
@@ -208,7 +208,7 @@ class NotificationRankingManagerTest : SysuiTestCase() {
|
|||||||
.setTag("tag")
|
.setTag("tag")
|
||||||
.setNotification(aN)
|
.setNotification(aN)
|
||||||
.setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT))
|
.setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT))
|
||||||
.setUser(mContext.getUser())
|
.setUser(mContext.user)
|
||||||
.setOverrideGroupKey("")
|
.setOverrideGroupKey("")
|
||||||
.build()
|
.build()
|
||||||
whenever(personNotificationIdentifier.isImportantPeopleNotification(a.sbn, a.ranking))
|
whenever(personNotificationIdentifier.isImportantPeopleNotification(a.sbn, a.ranking))
|
||||||
@@ -226,12 +226,12 @@ class NotificationRankingManagerTest : SysuiTestCase() {
|
|||||||
.setTag("tag")
|
.setTag("tag")
|
||||||
.setNotification(bN)
|
.setNotification(bN)
|
||||||
.setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT))
|
.setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT))
|
||||||
.setUser(mContext.getUser())
|
.setUser(mContext.user)
|
||||||
.setOverrideGroupKey("")
|
.setOverrideGroupKey("")
|
||||||
.build()
|
.build()
|
||||||
whenever(personNotificationIdentifier.isImportantPeopleNotification(a.sbn, a.ranking))
|
whenever(personNotificationIdentifier.isImportantPeopleNotification(b.sbn, b.ranking))
|
||||||
.thenReturn(false)
|
.thenReturn(true)
|
||||||
whenever(personNotificationIdentifier.isPeopleNotification(a.sbn, a.ranking))
|
whenever(personNotificationIdentifier.isPeopleNotification(b.sbn, b.ranking))
|
||||||
.thenReturn(true)
|
.thenReturn(true)
|
||||||
|
|
||||||
assertEquals(
|
assertEquals(
|
||||||
|
|||||||
Reference in New Issue
Block a user