How can I test methods within services?

Put your problem here if it does not fit any of the other categories.

How can I test methods within services?

Postby mathuin » Thu Apr 14, 2011 10:34 pm

I know how to test methods within activities. I can write JUnit test cases that exercise the methods and assert results and all that jazz. When I move a method from an activity to a service, I can no longer run tests against it.

I've looked at the on the Android developer site, but that's for testing the "servicey" part of the service, not the "business logicy" part which is what I want to test. Does anyone know how to do this? Thanks!

Junior Developer
Junior Developer
Posts: 15
Joined: Wed Jul 15, 2009 3:10 am


Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot] and 15 guests