summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/systests/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/systests/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java b/java/systests/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java
index 728d1eb9aa..c8a87a0a0e 100644
--- a/java/systests/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java
+++ b/java/systests/src/test/java/org/apache/qpid/server/exchange/ExchangeMBeanTest.java
@@ -33,7 +33,7 @@ import java.util.ArrayList;
public class ExchangeMBeanTest extends TestCase
{
private AMQQueue _queue;
- private QueueRegistry _queueRegistry = ApplicationRegistry.getInstance().getQueueRegistry();
+ private QueueRegistry _queueRegistry;
/**
* Test for direct exchange mbean
@@ -117,6 +117,7 @@ public class ExchangeMBeanTest extends TestCase
protected void setUp() throws Exception
{
super.setUp();
+ _queueRegistry = ApplicationRegistry.getInstance().getQueueRegistry();
_queue = new AMQQueue("testQueue", false, "ExchangeMBeanTest", false, _queueRegistry);
_queueRegistry.registerQueue(_queue);
}