Open agramian opened 7 years ago
This would be helpful. Especially when testing alarms in AlarmManager
.
One option is to use ShadowAlarmManager#getScheduledAlarms()
in Robolectric, to check for scheduled alarms.
This answer might help in adding it to Test Butler.
In the meantime, you could add a custom layer of indirection or use joda-time
It would be useful to provide a way to change the emulator's date and time for certain tests that vary the UI or logic based on the current device time.