For test case updatePreference_simSlotWithoutSim_notSetEnabled, mSecondSimPreference is a mock, instead of check the default value of isEnabled(), verify it's setEnabled() not called. Fix: 279880808 Test: RobolectricTest Change-Id: I72064820754e053def46bdbf10317189c7ac608f
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.