Spring Boot Testing Mini-Series Part #3: Database Tests

preview_player
Показать описание
This video is the third part of the Spring Boot Testing mini-series. In this video, we will look at how to write tests for the persistence layer.

00:00 Intro
00:21 What to test?
01:20 Integration Test With @DataJpaTest
02:16 Create Database Schema
04:45 Use Real Database
06:46 Validate Entity Mapping
08:00 Test Custom Queries
11:00 Manage Test Data
13:55 Verify Constraints
15:06 Use Enough Test Data

Рекомендации по теме
Комментарии
Автор

your videos on testing related code is amazing.frankly there are mo much actual hands on spring test on youtube.please make more such videos

rajkrishna
Автор

Great content! You cover several useful things I've never heard someone talk about before.

jesper
Автор

Very clear explanation. After spending many hours finally found a good playlist on this topic. Great job man.

robinmathur
Автор

As always, amazing explanations! Thank you so much!

cloudsquall
Автор

Arho - you provide wonderful content, great job 💪 Is there any chance to see new videos from you?

gallanonim
Автор

Best presentation of Spring I've seen so far, thanks and please keep them coming!

How would you stay with an SQL test script, and deal with deep hierarchies requiring foreign keys all the way up?

I'd love to hear about the object mother pattern.

PS: it's pronounced "skeema" not shama ;)

pryflack
Автор

Good music, man :) the content as well

MrVitalirapalis
Автор

Nice series and great job!! Thank you!!

fotistsavalos
Автор

Your videos are very good. Just my suggestion. Create a simple Rest API with the basic post, put, get methods and a little bit of logic in the service layer (check if email exists, etc.). And then write tests. I understand that this will require time, but a full detailed video will have much more views from beginners.

AndrulisTravel
Автор

How do we mix testcontainers, mysql & flyway? Do You have article about that? Thanks

hendisantika
Автор

Why do you use an EntityManager in the tests? Isn't it better to use an injected repository?

MrNoxior
Автор

Hi Arho, hope you're doing well. Do you know about Database Migration? and do you how to Unit Testing for Database Migration? Thanks in advance.

ductamnguyen
Автор

When you remove the flush part, when does the flush occurs to make fail the test again? 14:36

tko
Автор

protobuf with rest api java is a topic which has limited resources in youtube.if you can, please add videos on this topic too..

rajkrishna
Автор

Test Containers using private registry url images??? Can we have a video on this

kalyankasyapgarimella
Автор

your videos on testing related code is amazing.frankly there are mo much actual hands on spring test on youtube.please make more such videos

rajkrishna