Merge "Fix for EditShortcutsPreferenceFragmentTest to mock the correct AccessibilityTarget fields" into main
This commit is contained in:
@@ -549,6 +549,7 @@ public class EditShortcutsPreferenceFragmentTest {
|
|||||||
ComponentName componentName, String label) {
|
ComponentName componentName, String label) {
|
||||||
AccessibilityTarget target = mock(AccessibilityTarget.class);
|
AccessibilityTarget target = mock(AccessibilityTarget.class);
|
||||||
when(target.getComponentName()).thenReturn(componentName);
|
when(target.getComponentName()).thenReturn(componentName);
|
||||||
|
when(target.getId()).thenReturn(componentName.flattenToString());
|
||||||
when(target.getLabel()).thenReturn(label);
|
when(target.getLabel()).thenReturn(label);
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user