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

Commit 7c733b40 authored by Thomas Stuart's avatar Thomas Stuart Committed by Android (Google) Code Review
Browse files

Merge "adjust CallControl tests" into main

parents 364e6703 6cd149f5
Loading
Loading
Loading
Loading
+2 −17
Original line number Diff line number Diff line
@@ -39,14 +39,7 @@ import org.mockito.MockitoAnnotations;
import java.util.UUID;

public class CallControlTest extends TelecomTestCase {

    private static final PhoneAccountHandle mHandle = new PhoneAccountHandle(
            new ComponentName("foo", "bar"), "1");

    @Mock
    private ICallControl mICallControl;
    @Mock
    private ClientTransactionalServiceRepository mRepository;
    @Mock private ICallControl mICallControl;
    private static final String CALL_ID_1 = UUID.randomUUID().toString();

    @Override
@@ -64,15 +57,7 @@ public class CallControlTest extends TelecomTestCase {

    @Test
    public void testGetCallId() {
        CallControl control = new CallControl(CALL_ID_1, mICallControl, mRepository, mHandle);
        CallControl control = new CallControl(CALL_ID_1, mICallControl);
        assertEquals(CALL_ID_1, control.getCallId().toString());
    }

    @Test
    public void testCallControlHitsIllegalStateException() {
        CallControl control = new CallControl(CALL_ID_1, null, mRepository, mHandle);
        assertThrows(IllegalStateException.class, () ->
                control.setInactive(Runnable::run, result -> {
                }));
    }
}