~/talk

Things I Wish I Knew When I Started Testing Spring Boot Applications

Talkat Spring I/O 2023 · 2023-05-18..05-19· [testing]
slides:none on file

Spring Boot ships a testing Swiss army knife (starter-test pulling in JUnit 5, Mockito, AssertJ, Hamcrest, JSONassert, JsonPath) and recommends using focused slice annotations (e.g. @WebMvcTest, @JsonTest) instead of firing the whole context; overusing @SpringBootTest creates slow suites (contexts can take ~30s) and fragile mocks, and mixing JUnit 4 and JUnit 5 produces odd failures during migration; favor unit/slice tests, use Testcontainers or Testcontainers for real infra, and keep dependency management aligned.

AI-written summary · about

  1. 0:00Intro
  2. 0:48How I got into testing
  3. 1:49University
  4. 2:13First Ticket
  5. 4:08About me
  6. 4:52Testing Swiss Army Knife
  7. 5:17Spring Boot Starter Test
  8. 5:51Dependency Tree
  9. 7:42Mokito
  10. 8:19SRJ
  11. 9:31Json assert
  12. 10:15Json path
  13. 10:37Dependency management
  14. 12:03Spring Bootest isnt always your friend
  15. 12:22Autogenerated tests
  16. 12:55Application context
  17. 14:53Spring Boot Test Obsession
  18. 16:55Spring Boot Tests All Over The Place
  19. 17:18Unit Tests
  20. 17:59Slicing
  21. 19:15Slice Annotations
  22. 21:02Webmdc Tests
  23. 22:07Mock MVC Tests
  24. 23:31Slice Annotation
  25. 25:10JUnit 5 Pitfall
  26. 27:48Summary
  27. 30:47Conclusion
  28. 32:28Outro
~/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.