mirror of https://github.com/apache/activemq.git
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:
parent
618d1d5a88
commit
30b2e67b91
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue