Make tests use strict and warnings. Cleanup the killing of activemq so that it happen...
[catagits/Catalyst-Engine-STOMP.git] / t / 04-message-driven-request.t
index d194e7d..f7299db 100644 (file)
@@ -5,7 +5,9 @@ use Test::More tests => 5;
 use FindBin;
 use lib "$FindBin::Bin/../testapp/lib";
 
-BEGIN { use_ok 'Catalyst::Test::MessageDriven', 'StompTestApp' };
+BEGIN {
+    use_ok 'Catalyst::Test::MessageDriven', 'StompTestApp' or die;
+};
 
 # successful request - type is minimum attributes
 my $req = "---\ntype: ping\n";
@@ -18,3 +20,4 @@ $req = "--- ~\n";
 $res = request('testcontroller', $req);
 ok($res, 'response to empty message');
 ok($res->is_error, 'unsuccessful response');
+