Java Testing Made Easy: Testing Kafka, RabbitMQ Messaging Workflows using Testcontainers

Поділитися
Вставка

КОМЕНТАРІ • 15

  • @Anbu_Sampath
    @Anbu_Sampath Рік тому +1

    Nice explanation with demo.

  • @jitendrabirla9404
    @jitendrabirla9404 Рік тому +2

    Hello Siva,
    Thank you for creating amazing content for testing, was looking for the same.
    Could you please create some content on "How to Manage Distributed Transactions in Microservices using Saga" , I have gone through many courses but have not understood the actual concept and implementation?
    If you have any suggestions for existing tutorials, please let me know.

  • @ashitraj3768
    @ashitraj3768 Рік тому +1

    sir, can you please explain how to test spring jms using embedded activemq?

  • @geethashankar1
    @geethashankar1 Рік тому

    I'm trying to use the rabbitmq test contianer .
    RabbitMQContainer container =
    new RabbitMQContainer(DockerImageName.parse("rabbitmq:rabbitmq:3.11.28-alpine"))
    Getting the below error
    java.lang.IllegalStateException: Could not find a valid Docker environment.
    Running in IntelliJ and i have the docker running in WSL and i'm docker wsl connection is successful in intellij .
    Not sure what is missed .can you please guide

  • @tech_excellence
    @tech_excellence Рік тому

    Good content. Thank you.

  • @SaurabhSayings
    @SaurabhSayings Рік тому +1

    Hi Siva, Thank you for this video. Learnt new concepts today. Could you also make a tutorial on generic containers and effective use of it?

  • @aw703
    @aw703 10 місяців тому

    Hi Siva,
    Thanks for the video . please make more videos on interview preparation

  • @smile_please5848
    @smile_please5848 Рік тому

    You haven't make video on docker and how to use with java stack

  • @vianeyvargas7736
    @vianeyvargas7736 Рік тому

    Please upload Spring WebFlux video with Spring Security

  • @hasankagalwala7110
    @hasankagalwala7110 Рік тому

    If my payload contains a LocalDateTime then the producer send message fails with Failed to convert to JSON; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
    Adding serializer and deserializer configs to test application prop also does not work, can you show an example with that as well ?

    • @sivalabs
      @sivalabs  Рік тому

      Did you try adding the "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" jar dependency as mentioned in the error message?

    • @hasankagalwala7110
      @hasankagalwala7110 Рік тому

      @@sivalabs Thanks for the reply. I have not added it explicitly as I am using spring boot starter so all the jackson dependencies are bundled along with the jsr310 (can see it in the list of dependency jars), so not sure why it is not detected.

    • @sivalabs
      @sivalabs  Рік тому

      Is there any reproducer repo on GitHub? I will take a look at it.

    • @sivalabs
      @sivalabs  Рік тому

      I have updated the sample code to include a LocalDateTime field and it is working fine. See github.com/sivaprasadreddy/testcontainers-samples/blob/main/spring-boot-kafka-demo/src/main/java/com/sivalabs/demo/ProductPriceChangedEvent.java

    • @hasankagalwala7110
      @hasankagalwala7110 Рік тому +1

      @@sivalabs Thanks I found the issue, I was having an incorrect override of the ObjectMapper bean, removing it fixed the issue.