banking-kata-java icon indicating copy to clipboard operation
banking-kata-java copied to clipboard

Adapter - Messaging - RabbitMQ - receiveAndConvert

Open valentinajemuovic opened this issue 2 years ago • 2 comments

          Hello @eamtalu! I have one suggestion; you can add `receiveAndConvert("default-bankingkata-queue");` after the publishing method and verify with AssertJ that way:
rabbitMQEventBus.publish(accountOpenedDto);

Object message = rabbitTemplate.receiveAndConvert("default-bankingkata-queue");

Assertions.assertThat(message).isEqualTo(accountOpenedDto);

I think it will work fine.

Originally posted by @JoaoCipriano in https://github.com/valentinacupac/banking-kata-java/pull/117#discussion_r1227428620

valentinajemuovic avatar Jun 13 '23 11:06 valentinajemuovic

@eamtalu feel free to consider this.

valentinajemuovic avatar Jun 13 '23 11:06 valentinajemuovic

Hi @valentinacupac, sure I will work on this. @JoaoCipriano Thanks for code review, appreciate it. Reg, Amin

eamtalu avatar Jun 13 '23 12:06 eamtalu