I'm trying to build a valid junit testing suite on android.
Since i'm new to Junit i can't figure out how to use the ServiceTestCase class.
I can't figure it out how to get the getService() method working. it ever returns me null . So i decided to start it via startService. It does not work.
Could you please help me ?
Thanks
This is what you need to test your service
I've written some articles about Android testing and test driven development that you may find useful, check http://dtmilano.blogspot.com/search/label/test%20driven%20development.
The accepted answer doesn't work any more.
ATSL link
It seems they forgot to update the actual documentation.