A JUnit 5 extension for testing a jms interaction with openMQ broker.
@ImqBrokerTest
class YourTest {
@ImqConnection
private ConnectionFactory connectionFactory;
@Test
void testJms() throws Exception {
try (Connection conn = connectionFactory.createConnection()) {
// Do stuff
}
}
}