I've spent all afternoon trawling the web for tutorials and examples of using OCMock but I've still no idea if its possible and if so how to use it in combination with NSURLConnection to set up test code to simulate a server sending data in response to HTTP POSTs or GETs.
Does anybody know of a handy tutorial for doing this?
UPDATE: I subsequently came across this: how to unit test a NSURLConnection Delegate?