use strict;
use warnings;
-use Test::More tests => 5;
+use Test::More tests => 6;
use FindBin;
use lib "$FindBin::Bin/../testapp/lib";
-BEGIN { use_ok 'Catalyst::Test::MessageDriven', 'StompTestApp' };
+BEGIN { use_ok 'Catalyst::Test::MessageDriven' or die;
+ use_ok 'StompTestApp' or die; };
# successful request - type is minimum attributes
my $req = "---\ntype: ping\n";
$res = request('testcontroller', $req);
ok($res, 'response to empty message');
ok($res->is_error, 'unsuccessful response');
+
if ($@) {
unless (Alien::ActiveMQ->is_version_installed($ACTIVEMQ_VERSION)) {
- plan 'skip_all' => 'No ActiveMQ server installed by Alien::ActiveMQ, try running the "install-activemq" command';
+ plan 'skip_all' => 'No ActiveMQ server installed by Alien::ActiveMQ, try running the "install-activemq" command';
exit;
}