in ListenerTest and ListenerCloseTest you have a lock
waiting for a message, on the WaitingListener:
I have come up with the problem where if there is no
message being received by the listener this just keeps
the thread locked and effectively hangs the tests.
I suggest the following:
add following method to WaitingListener:
public boolean waitForReceipt(int timeout) throws
and change code in ListenerTest and ListenerCloseTest
log.warn("5 second waiting for
throw new Exception("5 second
waiting for listener");
Log in to post a comment.