• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mock the internet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mock the internet


  • Subject: Re: Mock the internet
  • From: Scott Andrew <email@hidden>
  • Date: Mon, 8 Nov 2010 06:13:21 -0800

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, 2010, at 1:53 AM, 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 layer? I don't think
> swizzle the NSURLConnection is enough because the HTTP intermediate
> framework my project depends use CFNetwork.
> Conditional compile and mocking the response inside the HTTP
> intermediate framework is bad since it's not even my code.
>
> Any suggestion for this?
>
> Regards,
> yllan
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Mock the internet (From: Yung-Luen Lan <email@hidden>)

  • Prev by Date: Re: Interrupt copyItemAtPath
  • Next by Date: Irregular layout of radio buttons
  • Previous by thread: Re: Mock the internet (with my crumby native English corrected)
  • Next by thread: Calling getter on const object
  • Index(es):
    • Date
    • Thread