Fix @Ignored test for Stylus Usi notifications.

Bug: 257936830
Test: atest StylusUsiPowerUiTest
Change-Id: I503512bb1693424d7ec22ffdc99ee9b60059bc1d
This commit is contained in:
Vania Januar
2023-01-12 10:19:47 +00:00
parent c5978eaf77
commit 46b837677c

View File

@@ -159,12 +159,12 @@ class StylusUsiPowerUiTest : SysuiTestCase() {
@Test
@Ignore("TODO(b/257936830): get bt address once input api available")
fun refresh_hasConnectedBluetoothStylus_doesNotNotify() {
fun refresh_hasConnectedBluetoothStylus_cancelsNotification() {
whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(0))
stylusUsiPowerUi.refresh()
verifyNoMoreInteractions(notificationManager)
verify(notificationManager).cancel(R.string.stylus_battery_low_percentage)
}
@Test