The spy annotation will trigger the non-existing API. Bug: 313563183 Test: atest SettingsRoboTests:com.android.settings.widget Change-Id: Iec4448b45e5408846962dc49c65ccc64feb5d2ad
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.