activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r427037 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java
Date Mon, 31 Jul 2006 07:48:58 GMT
Author: aco
Date: Mon Jul 31 00:48:58 2006
New Revision: 427037

URL: http://svn.apache.org/viewvc?rev=427037&view=rev
Log:
Added NPE checking for test case. Still failing though.

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java?rev=427037&r1=427036&r2=427037&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java
Mon Jul 31 00:48:58 2006
@@ -61,10 +61,14 @@
     }
 
     public void tearDown() throws Exception {
-        for (int i=0; i<BROKER_COUNT; i++) {
-            brokers[i].stop();
+        if (brokers != null) {
+            for (int i=0; i<BROKER_COUNT; i++) {
+                if (brokers[i] != null) {
+                    brokers[i].stop();
+                }
+            }
+            super.tearDown();
         }
-        super.tearDown();
     }
 
     private void doSendReceiveTest() throws Exception {



Mime
View raw message