LWP::UserAgent can conveniently read file:// URLs, so at least the REST part is easily mocked out by accessing file:// URLs instead of setting up a HTTP server, at least as long as you can make the URLs look something like a file system.
Otherwise, I would use something like Test::HTTP::LocalServer, which echoes you the URL back, and mock/retrieve the canned content separately.
In reply to Re: How would you mock calls to a (third-party) web-service?
by Corion
in thread How would you mock calls to a (third-party) web-service?
by locked_user sundialsvc4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |