mirror of https://github.com/apache/activemq.git
fixed test case to close down the connection in between test cases to avoid duplicate clientID exceptions
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366199 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ef3b50e18b
commit
ab1d1afc1c
|
@ -26,8 +26,6 @@ import javax.jms.Session;
|
|||
import javax.jms.TextMessage;
|
||||
import javax.jms.Topic;
|
||||
|
||||
import org.apache.activemq.ActiveMQConnection;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.4 $
|
||||
*/
|
||||
|
@ -88,6 +86,15 @@ public class JmsTopicRedeliverTest extends TestSupport {
|
|||
log.info("Created connection: " + connection);
|
||||
}
|
||||
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
if (connection != null) {
|
||||
connection.close();
|
||||
}
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the consumer subject.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue