
Philip Riecks
チャンネル登録者数 5700人
2672 回視聴 ・ 50いいね ・ 2020/12/20
Introduction to @DataJpaTest and Pitfalls of In-Memory Databases For Testing
This is the first video of the @DataJpaTest mini-series. We'll inspect @DataJpaTest for writing tests for our persistence layer and encounter the pitfalls of using an in-memory database (like H2).
Part I: • Introduction to @DataJpaTest and Pitf...
Part II: • Replacing the Default In-Memory Datab...
Part III: • Test a Native Query of Your Spring Da...
Part IV: • Short And Concise Test Setup With @Da...
Source code: github.com/rieckpil/blog-tutorials/tree/master/spr…
Content:
0:00 Which parts of our Spring Data JPA persistence layer should we test?
1:54 Inspecting @DataJpaTest
4:12 Running the first test with @DataJpaTest
5:50 Why H2 is not suitable for our test case
7:45 Add Flyway to the project for creating the database schema on our own
Vlad Mihalcea's hibernate-types project: github.com/vladmihalcea/hibernate-types
More testing related content is available on my blog: rieckpil.de/
» For more deep-dive into testing your Spring Boot persistence layer, consider joining the Testing Spring Boot Applications Masterclass: rieckpil.de/testing-spring-boot-applications-maste…
» Revamp your Testing Knowledge with this 14 Days Free Email Course on Testing Java Applications: rieckpil.de/getting-started-with-testing-java-appl…
#DataJpaTest #Pitfalls #SpringBoot
コメントを取得中...