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

Commit 3f719b76 authored by Felix Stern's avatar Felix Stern
Browse files

Changed mocking function due to WrongTypeOfReturnValue exception

Change-Id: I2da8dfc83e5f2c94570ca594e95f89c2660639d2
Test: atest InputMethodManagerServiceWindowGainedFocusTest#startInputOrWindowGainedFocus_userNotRunning
Fix: 329755350
parent 642bdb48
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(