I have an Activity I would like to automate testing on. The start up of the Activity is like this:
- Get data from Intent
- Bind to service and obtain some objects specific to that Activity's intent data
- Query these objects and print information to screen
I have a basic grasp of testing Activities but given how this Activity depends quite heavily on a Service and other objects, I'm unsure how to start testing it. Ideally, the service would also be set up during testing to return only data pre-defined by me.