Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a7b8d22 authored by Jared Duke's avatar Jared Duke
Browse files

Fix DevicePolicyManagerTest mocking

Prefer using doReturn+when instead of when+then for spied objects that
are not pure mocks. This avoids implicit invocation of the real spied
method implementation, with potentially invalid/unsupported values, when
the method override is applied.

Bug: 418727125
Test: atest DevicePolicyManagerTest
Flag: build.RELEASE_USE_SYSTEM_FEATURE_XML_FOR_UNAVAILABLE_FEATURES
Change-Id: I3dc464e78b5c460ed036c511baa3aac8a24145b8
parent c09fcab1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment