From cee13443091a714e837429beab62a2c09e0911d9 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Mon, 12 Apr 2010 15:42:04 +0000 Subject: QPID-2346 : Addressed the problems with AcknowledgeAfterFailoverOnMessageTest, The issues were the same as AckAfterFailoverTest. So used same prepBroker approach. Test also need timeout increased as broke restarts took to long for a message to be sent/received. Finally the last change was thatthe queue needed to be re-declared so that the final queue depth check would have a queue to query. Merged from 0.5.x-dev @ r907004 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@933281 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/client/AMQSession.java | 6 + .../ack/AcknowledgeAfterFailoverOnMessageTest.java | 169 +++++++++++++++------ .../test/unit/ack/AcknowledgeOnMessageTest.java | 48 +++++- .../apache/qpid/test/unit/ack/AcknowledgeTest.java | 17 +++ 4 files changed, 188 insertions(+), 52 deletions(-) (limited to 'qpid/java') diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java index 49f94edef7..b5ad42d8e1 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java @@ -486,6 +486,12 @@ public abstract class AMQSession