Paul Mooney > Catalyst-Engine-Stomp-0.17 > CatalystX::Test::MessageDriven

Download:
Catalyst-Engine-Stomp-0.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

NAME ^

CatalystX::Test::MessageDriven - test message-driven Catalyst apps

DESCRIPTION ^

Derived from Catalyst::Test, this module provides a way to run tests against message-driven Catalyst applications - those with Catalyst::Controller::MessageDriven-based controllers, and expect to run with Catalyst::Engine::Stomp.

SYNOPSIS ^

  BEGIN { use_ok 'CatalystX::Test::MessageDriven', 'SomeApp' };

  my $req = '... some message text ...';
  my $queue = 'somequeue';
  my $res = request($queue, $req);
  ok($res);

EXPORTS ^

request(queue, message)

This function accepts a queue and a message, and runs the request in that context. Returns a response object.

TODO ^

Some test wrappers - successful / error message conditions?

AUTHOR AND CONTRIBUTORS ^

See information in Catalyst::Engine::Stomp

LICENCE AND COPYRIGHT ^

Copyright (C) 2009 Venda Ltd

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: