Mock objects do not know the relation between setChecked and isChecked. Should not call mock objects's setter and assume the getter will return the corresponding value. Bug: 154564960 Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiEnhancedMacRandomizationPreferenceControllerTest Change-Id: Ib2e06f0fe60f7d6f90f76bd179a7aadccfcff4c4
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.