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

Commit d94cb9c8 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Replace when with doReturn

Bug: 386794284
Test: atest SatelliteControllerTest
Flag: EXEMPT bugfix
Change-Id: I2abd4e138f72e5b3199a4cb6c8ffe4bde6f733ec
parent f4fb1eb4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -613,11 +613,11 @@ public class SatelliteControllerTest extends TelephonyTest {
                SATELLITE_RESULT_REQUEST_ABORTED);
        mServiceState2 = mock(ServiceState.class);
        when(mPhone.getServiceState()).thenReturn(mServiceState);
        when(mPhone.getSubId()).thenReturn(SUB_ID);
        doReturn(SUB_ID).when(mPhone).getSubId();
        when(mPhone.getPhoneId()).thenReturn(0);
        when(mPhone.getSignalStrengthController()).thenReturn(mSignalStrengthController);
        when(mPhone2.getServiceState()).thenReturn(mServiceState2);
        when(mPhone2.getSubId()).thenReturn(SUB_ID1);
        doReturn(SUB_ID1).when(mPhone2).getSubId();
        when(mPhone2.getPhoneId()).thenReturn(1);
        when(mPhone2.getSignalStrengthController()).thenReturn(mSignalStrengthController);