Testing Spring Boot With Testcontainers by Sonali Mendis
Scott Logic
FEBRUARY 26, 2023
The easiest would be to add an Java in-memory database like H2 if you are using a SQL database or add an embedded MongoDB database, like the one provided by Flapdoodle if you are using a NoSQL storage. I have a PostgreSQL database in my production, and now you are asking me to test with a H2? Wait what?? getName ()).
Let's personalize your content