fix test breakage

This commit is contained in:
zzz
2014-06-01 18:04:04 +00:00
parent b97a53177e
commit 331b1fa742

View File

@ -49,19 +49,20 @@ class LocalClientManager extends ClientManager {
* @param flags ignored for local * @param flags ignored for local
*/ */
@Override @Override
void distributeMessage(Destination fromDest, Destination toDest, Payload payload, MessageId msgId, long expiration, int flags) { void distributeMessage(Destination fromDest, Destination toDest, Payload payload,
MessageId msgId, long messageNonce, long expiration, int flags) {
// check if there is a runner for it // check if there is a runner for it
ClientConnectionRunner sender = getRunner(fromDest); ClientConnectionRunner sender = getRunner(fromDest);
ClientConnectionRunner runner = getRunner(toDest); ClientConnectionRunner runner = getRunner(toDest);
if (runner != null) { if (runner != null) {
runner.receiveMessage(toDest, fromDest, payload); runner.receiveMessage(toDest, fromDest, payload);
if (sender != null) if (sender != null)
sender.updateMessageDeliveryStatus(msgId, MessageStatusMessage.STATUS_SEND_SUCCESS_LOCAL); sender.updateMessageDeliveryStatus(msgId, messageNonce, MessageStatusMessage.STATUS_SEND_SUCCESS_LOCAL);
} else { } else {
// remote. ignore. // remote. ignore.
System.out.println("Message " + msgId + " is targeting a REMOTE destination - DROPPED"); System.out.println("Message " + msgId + " is targeting a REMOTE destination - DROPPED");
if (sender != null) if (sender != null)
sender.updateMessageDeliveryStatus(msgId, MessageStatusMessage.STATUS_SEND_GUARANTEED_FAILURE); sender.updateMessageDeliveryStatus(msgId, messageNonce, MessageStatusMessage.STATUS_SEND_GUARANTEED_FAILURE);
} }
} }