~/talk

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

slides:none on file

Lists exactly what spring-boot-starter-test actually pulls: starter-test includes JUnit5, Mockito, AssertJ, Hamcrest, JSONassert, JsonPath. Demonstrates MockMvc examples and use slice tests like @WebMvcTest and @DataJpaTest to start tiny contexts instead of avoid overusing @SpringBootTest, because @MockBean-driven variants explode context permutations and ruin cache reuse. Shows the JUnit4 vs JUnit5 incompatibility, recommends OpenRewrite for migration, and mentions Testcontainers/WireMock for realistic integration tests — good if wanting concrete recipes and anti-patterns.

AI-written summary · about

  1. 0:00Introduction
  2. 3:34Spring Boot test support
  3. 15:40Spring Boot test isn't always your friend
  4. 24:39Slicing the application context
  5. 33:18JUnit 4 versus JUnit 5 pitfall
  6. 37:29Where to go next
  7. 41:24Conclusion
~/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.