From ecfbe6168de228c90f5ca0d061ba8dce275805f4 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 13 Dec 2005 16:19:37 +0000 Subject: [PATCH] avoid persistence and TCP by default in test cases git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356521 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/activemq/EmbeddedBrokerTestSupport.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java b/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java index f1169b54a0..7383cd6db9 100644 --- a/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java +++ b/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java @@ -38,7 +38,8 @@ import junit.framework.TestCase; public class EmbeddedBrokerTestSupport extends TestCase { protected BrokerService broker; - protected String bindAddress = "tcp://localhost:61616"; + //protected String bindAddress = "tcp://localhost:61616"; + protected String bindAddress = "vm://localhost"; protected ConnectionFactory connectionFactory; protected boolean useTopic = false; protected Destination destination; @@ -127,10 +128,18 @@ public class EmbeddedBrokerTestSupport extends TestCase { */ protected BrokerService createBroker() throws Exception { BrokerService answer = new BrokerService(); + answer.setPersistent(isPersistent()); answer.addConnector(bindAddress); return answer; } + /** + * @return whether or not persistence should be used + */ + protected boolean isPersistent() { + return false; + } + /** * Factory method to create a new connection */