I've got a bit of code in my app, that after X number of days will check if the user has rated the app, and if not, prompt them to do so.
How can I feasibly JUnit test this in a painless manner? The emulator doesn't have the market application by default, but there are plenty of tutorials to set that up.
Is there a way to stub this out so a unit test can check if the app has been rated, and if not attempt to rate it?
I'm a little bit stuck on ideas on how I can actually verify this bit of code works, without running it manually
Thanks