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

Commit 5d5df4c2 authored by Zach Johnson's avatar Zach Johnson
Browse files

Don't verify internal details, just verify expected results

Bug: 145171640
Test: atest BluetoothInstrumentationTests
Change-Id: I698c187bd8b6d3c6e1345a78a1a4d2a8683803a5
parent c7cb2ed5
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -270,8 +270,6 @@ public class RemoteDevicesTest {
        when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON);
        mRemoteDevices.aclStateChangeCallback(0, Utils.getByteAddress(mDevice1),
                AbstractionLayer.BT_ACL_STATE_DISCONNECTED);
        verify(mAdapterService).getState();
        verify(mAdapterService).getConnectionState(mDevice1);
        // Verify ACTION_ACL_DISCONNECTED and BATTERY_LEVEL_CHANGED intent are sent
        verify(mAdapterService, times(3)).sendBroadcast(mIntentArgument.capture(),
                mStringArgument.capture());
@@ -294,8 +292,6 @@ public class RemoteDevicesTest {
                mStringArgument.capture());
        verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
        Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue());

        verifyNoMoreInteractions(mAdapterService);
    }

    @Test