Ihar Hancharenka c85229e29e m
2023-09-27 14:58:08 +03:00

19 строки
980 B
Plaintext

2022
https://www.baeldung.com/spring-testing-separate-data-source
https://www.baeldung.com/spring-boot-unable-to-find-springbootconfiguration-with-datajpatest
https://github.com/eugenp/tutorials/tree/master/spring-boot-modules/spring-boot-config-jpa-error
https://www.baeldung.com/spring-boot-testing
https://github.com/eugenp/tutorials/tree/master/spring-boot-modules/spring-boot-testing
JPointJokerJUG - Kirekov - Spring Data JPA Testing Antipatterns ru of 54:33
https://www.youtube.com/watch?v=Q9UiuHvNTp4
! super, trans-n stuff
! @AutoConfigureTestDatabase
! @MockBean
! @DirtiesContext - to clean up between tests (antipattern, slows down, works onfly for in-mem DB)
! logging.level.org.springframework.orm.jpa.JpaTransactionManager=DEBUG
https://github.com/SimonHarmonicMinor/spring-data-jpa-efficient-testing
samples
https://github.com/stsypanov/spring-data-examples/blob/master/src/test
@Sql (from res), @Commit, @AfterTransaction