Merge "[Fix]Test cast fail at BaseBluetoothDialogPreferenceTest" into sc-dev am: d1718c3a15

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13746319

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id574717ab35b9748db50b065aaca2d57ccce2f73
This commit is contained in:
TreeHugger Robot
2021-03-03 10:55:03 +00:00
committed by Automerger Merge Worker

View File

@@ -105,6 +105,7 @@ public class BaseBluetoothDialogPreferenceTest {
public void onBindDialogView_checkRadioButtonsText() { public void onBindDialogView_checkRadioButtonsText() {
when(mView.findViewById(ID1)).thenReturn(mRadioButton1); when(mView.findViewById(ID1)).thenReturn(mRadioButton1);
when(mView.findViewById(ID2)).thenReturn(mRadioButton2); when(mView.findViewById(ID2)).thenReturn(mRadioButton2);
when(mView.findViewById(TEXT_VIEW_ID)).thenReturn(mTextView);
assertThat(mRadioButton1.getText()).isNotEqualTo(BUTTON1); assertThat(mRadioButton1.getText()).isNotEqualTo(BUTTON1);
assertThat(mRadioButton2.getText()).isNotEqualTo(BUTTON2); assertThat(mRadioButton2.getText()).isNotEqualTo(BUTTON2);
@@ -118,6 +119,7 @@ public class BaseBluetoothDialogPreferenceTest {
public void onBindDialogView_checkRadioButtonsState() { public void onBindDialogView_checkRadioButtonsState() {
when(mView.findViewById(ID1)).thenReturn(mRadioButton1); when(mView.findViewById(ID1)).thenReturn(mRadioButton1);
when(mView.findViewById(ID2)).thenReturn(mRadioButton2); when(mView.findViewById(ID2)).thenReturn(mRadioButton2);
when(mView.findViewById(TEXT_VIEW_ID)).thenReturn(mTextView);
List<Integer> indexes = new ArrayList<>(); List<Integer> indexes = new ArrayList<>();
indexes.add(0); indexes.add(0);
when(mCallback.getSelectableIndex()).thenReturn(indexes); when(mCallback.getSelectableIndex()).thenReturn(indexes);