Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

socialtext::resting::mock(3pm) [debian man page]

Socialtext::Resting::Mock(3pm)				User Contributed Perl Documentation			    Socialtext::Resting::Mock(3pm)

NAME
Socialtext::Resting::Mock - Fake rester SYNOPSIS
my $rester = Socialtext::Resting::Mock->(file => 'foo'); # returns content of 'foo' $rester->get_page('bar'); FUNCTIONS
new( %opts ) Create a new fake rester object. Options: file File to return the contents of. server( $new_server ) Get or set the server. username( $new_username ) Get or set the username. password( $new_password ) Get or set the password. workspace( $new_workspace ) Get or set the workspace. get_page( $page_name ) Returns the content of the specified file or the page stored locally in the object. get_pages Retrieve a list of pages in the current workspace. put_page( $page_name ) Stores the page content in the object. put_pagetag( $page, $tag ) Stores the page tags in the object. get_pagetags( $page ) Retrieves page tags stored in the object. die_on_put( $rc ) Tells the next put_page() to die with the supplied return code. accept( $mime_type ) Stores the requested mime type. order( $order ) Stores the requested order. get_taggedpages( $tag ) Retrieves the taggedpages stored in the object. set_taggedpages( $tag, $return ) Store the taggedpages return value in the object. This is not a real function, but it can make testing easier. json_verbose Set the json_verbose flag. response Retrieve a fake response object. AUTHOR
Luke Closs, "<luke.closs at socialtext.com>" COPYRIGHT &; LICENSE 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. perl v5.10.1 2009-01-09 Socialtext::Resting::Mock(3pm)

Check Out this Related Man Page

Test::Mock::LWP::UserAgent(3pm) 			User Contributed Perl Documentation			   Test::Mock::LWP::UserAgent(3pm)

NAME
Test::Mock::LWP::UserAgent - Mocks LWP::UserAgent SYNOPSIS
Make LWP::UserAgent to make testing easier. See Test::Mock::LWP manpage for more details. This class uses Test::MockObject, so refer to it's documentation as well. AUTHOR
Luke Closs, "<test-mock-lwp at 5thplane.com>" BUGS
Please report any bugs or feature requests through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Mock-LWP>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Test::Mock::LWP You can also look for information at: * AnnoCPAN: Annotated CPAN documentation <http://annocpan.org/dist/Test-Mock-LWP> * CPAN Ratings <http://cpanratings.perl.org/d/Test-Mock-LWP> * RT: CPAN's request tracker <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Mock-LWP> * Search CPAN <http://search.cpan.org/dist/Test-Mock-LWP> ACKNOWLEDGEMENTS
COPYRIGHT &; LICENSE 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. perl v5.8.8 2007-01-25 Test::Mock::LWP::UserAgent(3pm)
Man Page