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

Commit 3ead7461 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Modify Telephony Tests to handle ImsException

Test: atest FrameworksTelephonyTests
Merged-In: Id68eec88f2a345651fa06d235ad410d64ada7bd9
Change-Id: Id68eec88f2a345651fa06d235ad410d64ada7bd9
parent e5b7a22e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.verify;

import android.os.IBinder;
import android.os.RemoteException;
import android.telephony.AccessNetworkConstants;
import android.telephony.ims.aidl.IImsRegistrationCallback;
import android.telephony.ims.stub.ImsRegistrationImplBase;
@@ -72,10 +71,11 @@ public class ImsMmTelManagerTests extends TelephonyTest {
     */
    @SmallTest
    @Test
    public void testCallbackValues() throws RemoteException {
    public void testCallbackValues() throws Exception {
        LocalCallback cb = new LocalCallback();
        ImsMmTelManager managerUT = new ImsMmTelManager(0);
        managerUT.registerImsRegistrationCallback(Runnable::run, cb);

        // Capture the RegistrationCallback that was registered.
        ArgumentCaptor<IImsRegistrationCallback> callbackCaptor =
                ArgumentCaptor.forClass(IImsRegistrationCallback.class);