diff options
author | Martin Ritchie <ritchiem@apache.org> | 2008-08-11 11:15:42 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2008-08-11 11:15:42 +0000 |
commit | 81c29e1257a9154fe2bfaf51f846c1de8cde0fb1 (patch) | |
tree | 84220515c389096ae972b61e372591aed0cfc8be | |
parent | ec1e738f9e840940dc260dc8778ce6ffef9d0018 (diff) | |
download | qpid-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.java | 9 |
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*/); |