Previously this test asserted that the resulting ActivityInfo instances from the queryShortcuts() method were the same address. While this can assert general equality, it is more robust to assert the resulting ResolveInfos- mainly that they are sorted by priority. Bug: b/314924127 Test: atest SettingsRoboTests:com.android.settings.shortcut.CreateShortcutPreferenceControllerTest Flag: TEST_ONLY Change-Id: I00210440c7c1a87a6f8eb7a2866ae8571ec7d053
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest