The biggest difference is that an argumentcaptor is used for the ClipboardManager, rather than inspecting the primary clip. Diff: https://diff.googleplex.com/#key=X1WHfEzPhfuY Test: atest -c SerialNumberPreferenceControllerTest Change-Id: I84c2abd0d53dde22c90b0967f6884bc590181f7c
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.