Author: borges
Date: 2012-02-16 09:06:15 -0500 (Thu, 16 Feb 2012)
New Revision: 12127
Modified:
trunk/hornetq-core/src/test/java/org/hornetq/tests/util/UnitTestCase.java
Log:
Wrap assert's inside try-finally
Modified: trunk/hornetq-core/src/test/java/org/hornetq/tests/util/UnitTestCase.java
===================================================================
--- trunk/hornetq-core/src/test/java/org/hornetq/tests/util/UnitTestCase.java 2012-02-16
11:39:06 UTC (rev 12126)
+++ trunk/hornetq-core/src/test/java/org/hornetq/tests/util/UnitTestCase.java 2012-02-16
14:06:15 UTC (rev 12127)
@@ -943,9 +943,13 @@
closeAllSessionFactories();
closeAllServerLocatorsFactories();
+ try
+ {
assertAllClientConsumersAreClosed();
assertAllClientSessionsAreClosed();
-
+ }
+ finally
+ {
synchronized (servers)
{
for (HornetQServer server : servers)
@@ -1080,6 +1084,7 @@
clearData();
super.tearDown();
}
+ }
/**
*
Show replies by date