use of com.rabbitmq.jms.admin.RMQConnectionFactory in project rabbitmq-jms-client by rabbitmq.
the class SendingContextConsumerIT method init.
@BeforeEach
public void init() throws Exception {
RMQConnectionFactory connectionFactory = (RMQConnectionFactory) AbstractTestConnectionFactory.getTestConnectionFactory().getConnectionFactory();
connectionFactory.setSendingContextConsumer(ctx -> sentCount.incrementAndGet());
connection = connectionFactory.createConnection();
connection.start();
}
Aggregations