ensure speedy stop of broker on connection close

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1350572 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2012-06-15 11:03:53 +00:00
parent bf1f755299
commit 4e011e0a85
1 changed files with 6 additions and 2 deletions

View File

@ -84,7 +84,9 @@ public class PooledConnectionTest extends TestCase {
Assert.fail("calling ActiveMQConnection.setClientID() twice with different clientID must raise an IllegalStateException");
} catch (IllegalStateException ise) {
log.debug("Correctly received " + ise);
}
} finally {
conn.close();
}
// 3rd test: try to call setClientID() after start()
// should result in an exception
@ -96,7 +98,9 @@ public class PooledConnectionTest extends TestCase {
Assert.fail("Calling setClientID() after start() mut raise a JMSException.");
} catch (IllegalStateException ise) {
log.debug("Correctly received " + ise);
}
} finally {
conn.close();
}
log.debug("Test finished.");
}