Skip to content
Commit 9f5a33af authored by Behnam Heydarshahi's avatar Behnam Heydarshahi
Browse files

Tear down VolumeDialogImplTest cleanly

VolumeDialogImpl tests used to run a method on a mock
InteractionJankMonitor, a fault which resulted in a nullpointer
exception that caused the subsequent tests to crash.

This CL avoids the fault by preventing the abovementioned method from
running by allowing the VolumeDialogImpl class to not have an animator
jank listener, when under test.

Note: for long-term, instead of not listening to animation events,
either the lingering animation calls should be omitted or the mock
InteractionJankMonitor should not react to those calls with a null
pointer exception.

Bug: b/289228716
Test: atest VolumeDialogImplTest QuickAccessWalletControllerTest
Change-Id: I0677b6b6ab958dc9939f55851c00dc67d32b828d
parent 4867d4e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment