I'm trying to unittest my Service through a ServiceTestCase, but try to do so without using Guice or RoboGuice (Because of Avoid dependency injection frameworks). I want to inject a dependency other than Application or Context, but can't get it working:
- I cannot insert it through a custom constructor
- setupService() would seem like the right method based on the name, but has no arguments and no return value
I could make my utility class implement Parcelable and inject it through the Intent, but that seems forced. Any ideas?