Learning Spring Boot with TDD
summary
Practical exploration of using TDD with Spring Boot: how to go from business requirements to different test types and when to apply them. Covers TestRestTemplate, Mockito for business-logic testing, slice tests like @WebMvcTest and @DataJpaTest, avoiding oversized test contexts, approaches for testing Kafka, layering and architecture of tests (Conway’s law for tests), and advanced Spring Test features such as TestContextBootstrapper and TypeExcludeFilters.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 3:56What is TDD
- 5:22Building visa center
- 13:30Service business logic testing
- 22:44Mocking problems and fixes
- 31:36Adding caching to service
- 40:24Role of tests in development
- 44:36Visa agent with database
- 50:12Queue and Kafka testing
- 53:18Spring Boot test execution
- 55:04Summary
related talks
53mTesting Spring Boot Applications Demystified
44mTDD with Spring Boot - Testing the Harder Stuff
46mHow John Started to Like TDD (Instead of Hating It)
33mThings I Wish I Knew When I Started Testing Spring Boot Applications
48mTesting Spring Boot Applications Demystified
01h 13mWorkshop (Part 1): Stop Writing Tests, Start Writing Specifications!
51mTesting Spring Boot Applications
50mTesting Spring Boot Applications
