~/talk

Integration Testing with Spring

Talkat Voxxed Days Bucharest 2022 · 2022-03-23..03-25· [java, testing]
slides:none on file

Demonstrates practical recipes: uses Spring TestContext Framework with JUnit 5, shows repeated tests creating duplicate rows unless cleanup runs, and proves @Transactional rollback default is far faster than @DirtiesContext (constant per-test overhead). Reveals a pitfall where propagation REQUIRES_NEW commits and leaves a record, explains custom test execution listeners must use mergeMode=MERGE_WITH_DEFAULTS or lose essential listeners, and shows controller tests with mockMvc + @MockBean and reactive checks with WebTestClient.

AI-written summary · about

  1. 0:00Introduction
  2. 0:56Integration Testing
  3. 2:34Demonstration
  4. 6:18Dirtiest Context
  5. 8:16Transactional Execution
  6. 14:07Execution Time
  7. 22:10Execution listeners
  8. 22:52Test execution listener
  9. 31:10Testing on different profiles
  10. 34:39Testing Spring Rest
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.