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?