Fixing DurableConsumerCloseAndReconnectTest, make sure a persistent broker is used.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-02-10 21:14:08 +00:00
parent 618d1d5a88
commit 30b2e67b91
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@
*/
package org.apache.activemq.usecases;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.test.TestSupport;
import javax.jms.Connection;
@ -40,6 +41,10 @@ public class DurableConsumerCloseAndReconnectTest extends TestSupport {
private MessageProducer producer;
private Destination destination;
protected ActiveMQConnectionFactory createConnectionFactory() throws Exception {
return new ActiveMQConnectionFactory("vm://localhost?broker.persistent=true");
}
public void testCreateDurableConsumerCloseThenReconnect() throws Exception {
// force the server to stay up across both connection tests
Connection dummyConnection = createConnection();