This fix avoids the test wrongfully initializing real components before the tests can modify mockable fields, which causes NPEs. Bug: 318078730 Test: atest RemoteVolumeGroupControllerTest Change-Id: I350e3e2e45eadb0f9737ba5d4b45c9f80e3355fb
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.