NAME

Test::XML::RPC::Catalyst - Testing of Catalyst based XMLRPC applications

SYNOPSIS

  use Test::XML::RPC::Catalyst qw/Catty/;

  my $xmlrpc = Test::XML::RPC::Catalyst->new;

  ok ($xmlrpc->call ('system.listMethods'));

DESCRIPTION

This module merges Test::WWW::Mechanize::Catalyst and XML::RPC in order to provide test functionality for Catalyst based XMLRPC applications.

OVERRIDDEN METHODS

new

Takes the same arguments as the constructor of XML::RPC, but is overridden to provide default arguments. If no url is specified as first argument, a default of 'http://localhost/rpc' is used. Keep in mind when specifying an url that no actual connections are made, your application is used directly so the url is only useful for specifying what path the XMLRPC access point is which by default is '/rpc'.

METHODS

can_xmlrpc_methods
  $xmlrpc->can_xmlrpc_methods ([qw/foo.bar foo.baz/],'Supports my xmlrpc methods');

Tests if methods given as an arrayref in the first argument exists on the server.

For methods inherited from the superclass, see XML::RPC.

SEE ALSO

Test::WWW::Mechanize::Catalyst
XML::RPC

BUGS

Most software has bugs. This module probably isn't an exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Anders Nor Berle <berle@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2008 by Anders Nor Berle.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.