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

Commit 22fb8ef1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Changed mocking function due to WrongTypeOfReturnValue exception" into main

parents 69728b0f 3f719b76
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -198,7 +198,9 @@ public class InputMethodManagerServiceWindowGainedFocusTest

    @Test
    public void startInputOrWindowGainedFocus_userNotRunning() throws RemoteException {
        when(mMockUserManagerInternal.isUserRunning(anyInt())).thenReturn(false);
        // Run blockingly on ServiceThread to avoid that interfering with our stubbing.
        mServiceThread.getThreadHandler().runWithScissors(
                () -> when(mMockUserManagerInternal.isUserRunning(anyInt())).thenReturn(false), 0);

        assertThat(
                        startInputOrWindowGainedFocus(