
Socialtext::Resting::Mock - Fake rester

my $rester = Socialtext::Resting::Mock->(file => 'foo');
# returns content of 'foo'
$rester->get_page('bar');

Create a new fake rester object. Options:
File to return the contents of.
Get or set the server.
Get or set the username.
Get or set the password.
Get or set the workspace.
Returns the content of the specified file or the page stored locally in the object.
Retrieve a list of pages in the current workspace.
Stores the page content in the object.
Stores the page tags in the object.
Retrieves page tags stored in the object.
Tells the next put_page() to die with the supplied return code.
Stores the requested mime type.
Stores the requested order.
Retrieves the taggedpages stored in the object.
Store the taggedpages return value in the object.
This is not a real function, but it can make testing easier.
Set the json_verbose flag.
Retrieve a fake response object.

Luke Closs, <luke.closs at socialtext.com>

Copyright 2006 Luke Closs, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.