~/talk

Testing Spring Boot Applications

Talkat Spring I/O 2019 · 2019-05-16..05-17· [testing, developer-experience]
links:none on file
slides:none on file

Explains why tests should reduce risk not chase percentages, recommends a single context-refresh test as the highest-value start and warns against blind mocking; gives concrete tooling: @MockBean and @SpyBean for slice tests, mock-rest-service-server or OkHttp MockWebServer for HTTP clients, testcontainers or Spring's embedded helpers for real datastores, and details when context caching speeds or slows suites; notes tradeoffs between unit, slice and full integration tests and the move to JUnit 5 in Spring Boot 2.2.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Why Test
  3. 7:56Unit Tests
  4. 10:34Naming Tests
  5. 15:06RestServiceServer
  6. 20:32Spring Data
  7. 25:40Test Containers
  8. 25:55What is Test Containers
  9. 29:58What is Integration Test
  10. 32:10Context Cache
  11. 32:54Integration Test
  12. 34:50Spring Boot Test Overview
  13. 40:30Slice Test Support
  14. 40:44Slice Annotations
  15. 42:05Example Application
  16. 44:44Mock Bean
  17. 45:33Customer Repository
  18. 45:47Order Repository
  19. 46:28Mock MVC
  20. 48:17Spring Boot JUnit 5
  21. 50:15Outro
~/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.