Writing Integration Tests in Spring Boot App with JPA using JUnit5, Testcontainers and JPA Buddy

preview_player
Показать описание
#springboot #testcontainers #junit #intellijidea #jpabuddy

This video will show how to create tests for a Spring Boot application with JPA that interacts with the database. With the help of Testcontainers and JPA Buddy, it will take us a couple of minutes.

00:00 - Introduction
00:17 - Domain Model and Business Logic
02:17 - Preparing Testing Environment
03:00 - Database Initialization
06:42 - Test Implementation
07:02 - The Results

JPA Buddy is an IntelliJ IDEA plugin that helps developers work efficiently with Hibernate, EclipseLink, Spring Data JPA, Flyway, Liquibase, Lombok, MapStruct, and other related technologies in both Java and Kotlin.

The plugin is intended to:
– Lower barrier to entry into development with JPA
– Boost developer’s productivity
– Make sure your code follows best practices

JPA Buddy delivers:
– Intuitive wizards to work with JPA
– Automatic database versioning changelog generation
– Smart inspections to make the code better
– JPA Entities generation based on tables (reverse engineering)
– Visual DTO designer and mapper code generator

You can use JPA Buddy in any project with Spring Boot, Jakarta Enterprise Edition, Quarkus, Micronaut, or even without any framework.

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

My favourite plugin in Intelij.. thanks JPA Buddy team

arghyamitra
Автор

Great video, thank you for it.
Does JPA Buddy offer a feature that allows us to create N records of an entity via an autogenerated .SQL file with random data?
That would be really helpful for integration tests when an entity has many, many fields.

marcofaccani