summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2008-08-11 11:15:42 +0000
committerMartin Ritchie <ritchiem@apache.org>2008-08-11 11:15:42 +0000
commit81c29e1257a9154fe2bfaf51f846c1de8cde0fb1 (patch)
tree84220515c389096ae972b61e372591aed0cfc8be
parentec1e738f9e840940dc260dc8778ce6ffef9d0018 (diff)
downloadqpid-python-81c29e1257a9154fe2bfaf51f846c1de8cde0fb1.tar.gz
QPID-1223 : Updated AckTest to correctly create and close the ApplicationRegistry
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@684713 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/server/queue/AckTest.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/AckTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/AckTest.java
index d65a431a2a..09d83bde0c 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/AckTest.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/AckTest.java
@@ -60,20 +60,17 @@ public class AckTest extends TestCase
private StoreContext _storeContext = new StoreContext();
- private AMQChannel _channel;
+ private AMQChannel _channel;
private AMQQueue _queue;
private static final AMQShortString DEFAULT_CONSUMER_TAG = new AMQShortString("conTag");
- public AckTest() throws Exception
- {
- ApplicationRegistry.initialise(new NullApplicationRegistry());
- }
-
protected void setUp() throws Exception
{
super.setUp();
+ ApplicationRegistry.initialise(new NullApplicationRegistry(), 1);
+
_messageStore = new TestMemoryMessageStore();
_protocolSession = new MockProtocolSession(_messageStore);
_channel = new AMQChannel(_protocolSession,5, _messageStore /*dont need exchange registry*/);