summaryrefslogtreecommitdiff
path: root/java/broker/src/test/java/org/apache/qpid/server/queue/AMQQueueAlertTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/broker/src/test/java/org/apache/qpid/server/queue/AMQQueueAlertTest.java')
-rw-r--r--java/broker/src/test/java/org/apache/qpid/server/queue/AMQQueueAlertTest.java21
1 files changed, 1 insertions, 20 deletions
diff --git a/java/broker/src/test/java/org/apache/qpid/server/queue/AMQQueueAlertTest.java b/java/broker/src/test/java/org/apache/qpid/server/queue/AMQQueueAlertTest.java
index 1bc50db1d5..75ad8380bc 100644
--- a/java/broker/src/test/java/org/apache/qpid/server/queue/AMQQueueAlertTest.java
+++ b/java/broker/src/test/java/org/apache/qpid/server/queue/AMQQueueAlertTest.java
@@ -34,6 +34,7 @@ import org.apache.qpid.server.AMQChannel;
import org.apache.qpid.server.transactionlog.TransactionLog;
import org.apache.qpid.server.subscription.Subscription;
import org.apache.qpid.server.subscription.SubscriptionFactoryImpl;
+import org.apache.qpid.server.configuration.QueueConfiguration;
import org.apache.qpid.server.protocol.AMQMinaProtocolSession;
import org.apache.qpid.server.protocol.InternalTestProtocolSession;
import org.apache.qpid.framing.ContentHeaderBody;
@@ -250,26 +251,6 @@ public class AMQQueueAlertTest extends TestCase
_queueMBean.clearQueue();
assertEquals(new Long(0), new Long(_queueMBean.getQueueDepth()));
}
-
- public void testAlertConfiguration() throws AMQException
- {
- // Setup configuration
- CompositeConfiguration config = new CompositeConfiguration();
- config.setProperty("maximumMessageSize", new Long(23));
- config.setProperty("maximumMessageCount", new Long(24));
- config.setProperty("maximumQueueDepth", new Long(25));
- config.setProperty("maximumMessageAge", new Long(26));
-
- // Create queue and set config
- _queue = getNewQueue();
- _queue.configure(config);
-
- // Check alerts and notifications
- Set<NotificationCheck> checks = _queue.getNotificationChecks();
- assertNotNull("No checks found", checks);
- assertFalse("Checks should not be empty", checks.isEmpty());
- assertEquals("Wrong number of checks", 4, checks.size());
- }
protected IncomingMessage message(final boolean immediate, long size) throws AMQException
{