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/dansonplaceholder...
Testcontainers: www.testcontainers.com
JsonPlaceholder Service: https://jsonplaceholder.typicode.com/
Spring Blog Article: https://spring.io/blog/2023/06/23/imp...
Connect with me:
Website: https://www.danvega.dev
Twitter: / therealdanvega
Github: https://github.com/danvega
LinkedIn: / danvega
Newsletter: https://www.danvega.dev/newsletter
SUBSCRIBE TO MY CHANNEL: http://bit.ly/2re4GH0 ❤