From f9e9afa4fc2eeb27ff3bdbfc367c33a8e7efa093 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Tue, 6 Jul 2010 02:38:42 +0000 Subject: Fixed a compile error. The testTopicBindings() was defined twice in this class, possibly an error when applying the patch. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960766 13f79535-47bb-0310-9956-ffa450edef68 --- .../qpid/server/exchange/ExchangeMBeanTest.java | 26 ---------------------- 1 file changed, 26 deletions(-) (limited to 'java') diff --git a/java/broker/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java b/java/broker/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java index b51c88680e..71e92b5294 100644 --- a/java/broker/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java +++ b/java/broker/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java @@ -128,32 +128,6 @@ public class ExchangeMBeanTest extends InternalBrokerBaseCase assertTrue(mbean.isAutoDelete()); } - /** - * Test adding bindings and removing them from the topic exchange via JMX. - *

- * QPID-2700 - */ - public void testTopicBindings() throws Exception - { - int bindings = _queue.getBindingCount(); - - Exchange exchange = _queue.getVirtualHost().getExchangeRegistry().getExchange(new AMQShortString("amq.topic")); - ManagedExchange mbean = (ManagedExchange) ((AbstractExchange) exchange).getManagedObject(); - - mbean.createNewBinding(_queue.getName(), "robot.#"); - mbean.createNewBinding(_queue.getName(), "#.kitten"); - - assertEquals("Should have added two bindings", bindings + 2, _queue.getBindingCount()); - - mbean.removeBinding(_queue.getName(), "robot.#"); - - assertEquals("Should have one extra binding", bindings + 1, _queue.getBindingCount()); - - mbean.removeBinding(_queue.getName(), "#.kitten"); - - assertEquals("Should have original number of binding", bindings, _queue.getBindingCount()); - } - /** * Test adding bindings and removing them from the default exchange via JMX. *

-- cgit v1.2.1