Handle exceptions described in AMQ-5372 to avoid cascading test failures

This commit is contained in:
Kevin Earls 2014-09-29 10:47:09 +02:00
parent 023b0f1987
commit 8163b0b95e
2 changed files with 8 additions and 2 deletions

View File

@ -58,7 +58,10 @@ public abstract class EmbeddedBrokerTestSupport extends CombinationTestSupport {
protected void tearDown() throws Exception {
if (broker != null) {
broker.stop();
try {
broker.stop();
} catch (Exception e) {
}
}
}

View File

@ -182,7 +182,10 @@ public abstract class UdpTestSupport extends TestCase implements TransportListen
protected void tearDown() throws Exception {
if (producer != null) {
producer.stop();
try {
producer.stop();
} catch (Exception e) {
}
}
if (consumer != null) {
consumer.stop();