A common task when consuming API responses is to parse date values into java Date objects.
The format of the values come in many shapes and forms but one of the most common practices is to use a String in a variant of the ISO 8601 format.
When testing on an emulator or a real device, Espresso requires the device to be unlocked and awake to run. We want to automate this process.
A quick search on the web will bring up solutions involving the use of PowerManager and KeyguardManager…