CatalystX::Test::MessageDriven - test message-driven Catalyst apps
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.
BEGIN { use_ok 'CatalystX::Test::MessageDriven', 'SomeApp' }; my $req = '... some message text ...'; my $queue = 'somequeue'; my $res = request($queue, $req); ok($res);
This function accepts a queue and a message, and runs the request in that context. Returns a response object.
Some test wrappers - successful / error message conditions?
See information in Catalyst::Engine::Stomp
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.
To install Catalyst::Engine::Stomp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Engine::Stomp
CPAN shell
perl -MCPAN -e shell install Catalyst::Engine::Stomp
For more information on module installation, please visit the detailed CPAN module installation guide.