Spring Boot Testcontainers - Integration Testing made easy!
In this tutorial you are going to learn how to write an integration test in Spring Boot using Testcontainers. We are going to use Testcontainers to spin up a PostgreSQL database in a container and use that for our tests. We will write a Repository test and a Controller test that calls the repository that talks to our database.
🔗Resources & Links mentioned in this video:
GitHub Repo: https://github.com/danson-placeholder-service/posts
Testcontainers: www.testcontainers.com
JsonPlaceholder Service: https://jsonplaceholder.typicode.com/
Spring Blog Article: https://spring.io/blog/2023/06/23/improved-testcontainers-support-in-spring-boot-3-1
👋🏻Connect with me:
Website: https://www.danvega.dev
Twitter: https://twitter.com/therealdanvega
Github: https://github.com/danvega
LinkedIn: https://www.linkedin.com/in/danvega
Newsletter: https://www.danvega.dev/newsletter
SUBSCRIBE TO MY CHANNEL: http://bit.ly/2re4GH0 ❤️