Re: Mock the internet

2010-11-08 Thread Scott Andrew
There are a couple of options I have used.. 1.) User your mac's local web server. 2.) MAMP which includes a full Web Server with mySQL. http://www.mamp.info/en/index.html. I use this later a lot for creating and testing custom backend services and client calls locally. Scott Andrew On Nov 8, 2

Re: Mock the internet (with my crumby native English corrected)

2010-11-08 Thread Jerry Krinock
On 2010 Nov 08, at 04:56, jonat...@mugginsoft.com wrote: Jonathan gave good answers but you're probably going to need a little more help. > During development can you not target a local httpd instance that doesn't > support the full API but simply returns an acknowledgment/error response? Thes

Re: Mock the internet (with my crumby native English corrected)

2010-11-08 Thread jonat...@mugginsoft.com
On 8 Nov 2010, at 09:53, Yung-Luen Lan wrote: > Hi, > > I'm writing a framework for web API like flickr. However, I don't want > my test failed depending on the server status. > (And I don't want it hit the server every time I build my project.) > > Is there any easy way to "fake" the network

Re: Mock the internet

2010-11-08 Thread jonat...@mugginsoft.com
On 8 Nov 2010, at 09:53, Yung-Luen Lan wrote: > Hi, > > I'm writing a framework for web API like flickr. However, I don't want > my test failed depending on the server status. > (And I don't want it hit the server every time I build my project.) > > Is there any easy way to "fake" the network l

Mock the internet

2010-11-08 Thread Yung-Luen Lan
Hi, I'm writing a framework for web API like flickr. However, I don't want my test failed depending on the server status. (And I don't want it hit the server every time I build my project.) Is there any easy way to "fake" the network layer? I don't think swizzle the NSURLConnection is enough beca