banking-kata-java
banking-kata-java copied to clipboard
Adapter - Messaging - RabbitMQ - receiveAndConvert
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
@eamtalu feel free to consider this.
Hi @valentinacupac, sure I will work on this. @JoaoCipriano Thanks for code review, appreciate it. Reg, Amin