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:
James Strachan 2006-01-05 15:23:18 +00:00
parent ef3b50e18b
commit ab1d1afc1c
1 changed files with 9 additions and 2 deletions

View File

@ -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.
*