From 483ab71751bc7c7cd8270ebf5ac30866b95972bd 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/qpid@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 'java') diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQSession.java b/java/client/src/main/java/org/apache/qpid/client/AMQSession.java index 49f94edef7..b5ad42d8e1 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQSession.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQSession.java @@ -486,6 +486,12 @@ public abstract class AMQSession