summaryrefslogtreecommitdiff
path: root/java/management
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2010-06-02 16:42:19 +0000
committerMartin Ritchie <ritchiem@apache.org>2010-06-02 16:42:19 +0000
commite0557a71239b4431c3c6133d5cb21a19f485560d (patch)
tree8239f54e2d5e4f4a5c942cf840962085b3967a55 /java/management
parente943c3a5cf537e3b007dd70fdeb0708f0cd38389 (diff)
downloadqpid-python-e0557a71239b4431c3c6133d5cb21a19f485560d.tar.gz
QPID-2632 : Updating ManagementConsoleTest to use IBBC required added broker/test as a dependency
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950639 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management')
-rw-r--r--java/management/eclipse-plugin/build.xml2
-rw-r--r--java/management/eclipse-plugin/src/test/java/org/apache/qpid/management/ui/ManagementConsoleTest.java11
2 files changed, 4 insertions, 9 deletions
diff --git a/java/management/eclipse-plugin/build.xml b/java/management/eclipse-plugin/build.xml
index 3361ae362c..527fc1cd09 100644
--- a/java/management/eclipse-plugin/build.xml
+++ b/java/management/eclipse-plugin/build.xml
@@ -21,7 +21,7 @@
<project name="Eclipse Plugin" default="build">
<property name="module.depends" value="broker common management/common"/>
- <property name="module.test.depends" value="broker/test" />
+ <property name="module.test.depends" value="broker/test common/test" />
<import file="../../module.xml"/>
diff --git a/java/management/eclipse-plugin/src/test/java/org/apache/qpid/management/ui/ManagementConsoleTest.java b/java/management/eclipse-plugin/src/test/java/org/apache/qpid/management/ui/ManagementConsoleTest.java
index 8295502439..0f62fa8ab2 100644
--- a/java/management/eclipse-plugin/src/test/java/org/apache/qpid/management/ui/ManagementConsoleTest.java
+++ b/java/management/eclipse-plugin/src/test/java/org/apache/qpid/management/ui/ManagementConsoleTest.java
@@ -30,6 +30,7 @@ import org.apache.qpid.server.queue.AMQQueue;
import org.apache.qpid.server.queue.AMQQueueFactory;
import org.apache.qpid.server.registry.ApplicationRegistry;
import org.apache.qpid.server.registry.IApplicationRegistry;
+import org.apache.qpid.server.util.InternalBrokerBaseCase;
import org.apache.qpid.server.virtualhost.VirtualHost;
import javax.management.MBeanFeatureInfo;
@@ -43,24 +44,18 @@ import java.util.List;
* There are some hardcoding of management feature names and parameter names to create a customized
* look in the console.
*/
-public class ManagementConsoleTest extends TestCase
+public class ManagementConsoleTest extends InternalBrokerBaseCase
{
private VirtualHost _virtualHost;
@Override
- protected void setUp() throws Exception
+ public void setUp() throws Exception
{
super.setUp();
IApplicationRegistry applicationRegistry = ApplicationRegistry.getInstance();
_virtualHost = applicationRegistry.getVirtualHostRegistry().getVirtualHost("test");
}
- @Override
- protected void tearDown() throws Exception
- {
- // Correctly Close the AR that we created above
- ApplicationRegistry.remove();
- }
/**
* Test for AMQQueueMBean attribute and operation names, which are used in the management console