~/talk

Spring Boot Test - A look behind the curtain

Talkat Voxxed Days Zurich 2026 · on Tuesday, 2026-03-24· [java, testing]
slides:none on file

Shows why @SpringBootTest boots "95% of the app" (web server mocked) and when to prefer slices like @WebMvcTest; builds a reusable JUnit extension called demo Spring extension that moves application-context creation into a test context manager and then into a bootstrapper plus cached test context, adds test execution listeners for autowiring and transactions, and demonstrates Mockito, JUnit, AssertJ and TestNG interoperability. Prototype compiles and runs; caching cuts repeated 3s startup examples and prevents redundant context creation.

AI-written summary · about

  1. 0:00Start
  2. 0:15Introduction
  3. 1:00Testing purpose and goals
  4. 2:49Unit testing basics
  5. 6:00Pure unit testing limits
  6. 11:40Integration tests from scratch
  7. 15:18Reusable JUnit extension
  8. 19:57Test context manager abstraction
  9. 23:28Caching app contexts
  10. 28:07Test execution listeners
  11. 36:01Integration testing trade-offs
  12. 38:26Spring Boot testing abstractions
  13. 41:01Slice testing strategies
  14. 44:14Summary
~/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.