So I am trying to get some integration testing of JMS processing, Spring (v4.1.6) based code.
It\'s a very standard Spring setup with @JmsListener
annotate
If you would add logging to the @JmsListener annotated method, you could do something like this in the test class
@Rule
public OutputCapture outputCapture = new OutputCapture();
@Test
public void test() {
sendSomeMessage();
//how to wait here for the @JMSListener method to complete
Assertions.assertThat(outputCapture.toString()).contains("Message received.");
}