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

Commit 70031a67 authored by Guojing Yuan's avatar Guojing Yuan Committed by Android (Google) Code Review
Browse files

Merge "Add a test for the NPE case" into main

parents 2af7db29 3905fd7a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -91,6 +91,14 @@ public class BluetoothDetailsDataSyncControllerTest extends BluetoothDetailsCont
        assertThat(mController.isAvailable()).isTrue();
    }

    @Test
    public void refresh_noAssociations_checkPreferenceInvisible() {
        mController.mAssociationId = DUMMY_ASSOCIATION_ID;
        mController.refresh();

        assertThat(mPermSyncPreference.isVisible()).isFalse();
    }

    @Test
    public void refresh_permSyncNull_checkPreferenceInvisible() {
        mPermissionSyncRequest = null;