From 15fb25d653a86a97429d75495385886e7f5b5a15 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Fri, 15 Aug 2008 15:48:00 +0000 Subject: [PATCH] Fix for https://issues.apache.org/activemq/browse/AMQ-1878 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@686257 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/jmx/MBeanTest.java | 2 +- .../broker/region/SubscriptionAddRemoveQueueTest.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java index 02cda75cbe..1ea8ec1b23 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java @@ -54,7 +54,7 @@ public class MBeanTest extends EmbeddedBrokerTestSupport { protected Connection connection; protected boolean transacted; protected int authMode = Session.AUTO_ACKNOWLEDGE; - protected static final int MESSAGE_COUNT = 2*BaseDestination.DEFAULT_PAGE_SIZE; + protected static final int MESSAGE_COUNT = 2*BaseDestination.MAX_PAGE_SIZE; /** * When you run this test case from the command line it will pause before diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java index 2b8e7e8b33..0b35e78287 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java @@ -310,5 +310,13 @@ public class SubscriptionAddRemoveQueueTest extends TestCase { public void removeDestination(Destination destination) { } + /* (non-Javadoc) + * @see org.apache.activemq.broker.region.Subscription#countBeforeFull() + */ + public int countBeforeFull() { + // TODO Auto-generated method stub + return 10; + } + } }