In this video tutorial, we will learn how to do Spring Boot application Integration Testing using Testcontainers.
First, we write Integration tests using a local MySQL database, and then we will address the problem with Testcontainers as a solution.
Chapters:
[04:03] What problem do Testcontainers solve
[06:17] Testcontainers overview
[09:37] Create Spring boot project
[13:16] Configure MySQL Database
[14:56] Create Student JPA entity
[17:56] Create Student JPA Repository
[18:58] Create StudentController and REST APIs
[22:31] Write Integration Test for REST API
[32:58] Run Integration Test
[33:51] What is the problem with Integration Test
[34:44] Adding Testcontainers
[37:21] Integration testing using Testcontainers
[44:52] Using Singleton containers pattern
[48:38] Run Integration Test
GitHub repository at https://github.com/RameshMF/springboot-testcontainers-demo
Subscribe: https://www.youtube.com/@JavaGuides/featured
#springboot #testing #testcontainers