diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsDataSyncControllerTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsDataSyncControllerTest.java index 799f7fc0263..5d6fe319e2e 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsDataSyncControllerTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsDataSyncControllerTest.java @@ -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;