I have some methods in my app that make http requests. Is there a good way to simulate network failures and bad responses for the unit tests?
Suitable Mock Objects should let you perform such simulations easily; if you're unfamiliar with the concept, there's a good tutorial here.