activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r356521 - /incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java
Date Tue, 13 Dec 2005 16:19:43 GMT
Author: jstrachan
Date: Tue Dec 13 08:19:37 2005
New Revision: 356521

URL: http://svn.apache.org/viewcvs?rev=356521&view=rev
Log:
avoid persistence and TCP by default in test cases

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java?rev=356521&r1=356520&r2=356521&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/EmbeddedBrokerTestSupport.java
Tue Dec 13 08:19:37 2005
@@ -38,7 +38,8 @@
 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,8 +128,16 @@
      */
     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;
     }
 
     /**



Mime
View raw message