How would i test NSURLConnection which is nested in a method

Discussion of the OCMock framework. If you have patches we would prefer you to send them to the mailing list, but attaching them to a topic is possible, too.

How would i test NSURLConnection which is nested in a method

Postby yellokrow » 30 May 2014, 17:10

I have a method (sendData) that takes one parameter of json. This method will then forward the json to a web server. Is there a way to mock NSURLConnection inside this method to return a 404 or some other value?
yellokrow
 

Return to OCMock



cron