Closed jirkadanek closed 6 years ago
Looks like the MockJMSSession#send
is supposed to throw a JMSException
when I attempt to send on a session belonging to failed connection but it doesn't. So I'd say the bug is in the incompleteness of the Mock objects, not in pooled-jms itself.
Fixed in commit 8ca2ffcfcc604c40cded0f95429f63c85d3d50f0
https://github.com/messaginghub/pooled-jms/blob/5e2d8b2a5b403b7d3c27bd1a0fe644e7c0326417/pooled-jms/src/test/java/org/messaginghub/pooled/jms/JmsPoolReconnectOnFailureTest.java#L59-L61