I see multiple examples demonstrating on how to test jms-listeners, but what i am really looking for is testing some negative test cases such as,
- test if jms transaction is rolled back if there is any error processing the message
- test if jms listener handles/throws exception
Below are some examples, which jst shows positive test cases,
How to wait for @JMSListener annotated method to complete in JUnit
Writing tests to verify received msg in jms listener (Spring-Boot)