activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject activemq git commit: Turn off expired message processing during this test, the browse for expired message can trip the limits that this test expects to end up with which is not what is being tested here.
Date Tue, 16 Jun 2015 16:36:19 GMT
Repository: activemq
Updated Branches:
  refs/heads/master ffef4dc5f -> 540d8c707


Turn off expired message processing during this test, the browse for
expired message can trip the limits that this test expects to end up
with which is not what is being tested here.  

Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/540d8c70
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/540d8c70
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/540d8c70

Branch: refs/heads/master
Commit: 540d8c70794228c9f52667e44a3c48ae64e4e5c9
Parents: ffef4dc
Author: Timothy Bish <tabish121@gmail.com>
Authored: Tue Jun 16 12:35:17 2015 -0400
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Tue Jun 16 12:35:17 2015 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/usecases/MemoryLimitTest.java  | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/540d8c70/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
index e3641be..3e3dcff 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
@@ -17,15 +17,17 @@
 package org.apache.activemq.usecases;
 
 import java.util.Arrays;
-import javax.jms.*;
-import javax.management.MalformedObjectNameException;
-import javax.management.ObjectName;
+
+import javax.jms.BytesMessage;
+import javax.jms.Connection;
+import javax.jms.Message;
+import javax.jms.MessageConsumer;
+import javax.jms.Queue;
+import javax.jms.Session;
 
 import org.apache.activemq.ActiveMQConnectionFactory;
 import org.apache.activemq.TestSupport;
-import org.apache.activemq.broker.BrokerRegistry;
 import org.apache.activemq.broker.BrokerService;
-import org.apache.activemq.broker.jmx.QueueView;
 import org.apache.activemq.broker.jmx.QueueViewMBean;
 import org.apache.activemq.broker.region.Destination;
 import org.apache.activemq.broker.region.policy.PolicyEntry;
@@ -65,6 +67,7 @@ public class MemoryLimitTest extends TestSupport {
         PolicyMap policyMap = new PolicyMap();
         PolicyEntry policyEntry = new PolicyEntry();
         policyEntry.setProducerFlowControl(false);
+        policyEntry.setExpireMessagesPeriod(0);
         policyMap.put(new ActiveMQQueue(">"), policyEntry);
         broker.setDestinationPolicy(policyMap);
 


Mime
View raw message