Spring testing tools isolate object, container and HTTP contracts through selected fixtures.
Learning roadmap
Read the contract, run the source-kit checks, and inspect a rejected input before extending the application. This subject covers Spring and Spring Boot together; Java language lessons remain in their own subject.
Prerequisites
Use Java object ownership, interfaces, exceptions and Maven builds before the framework-specific lessons.
Section lessons
- Spring MockMvc tests: HTTP behavior without claiming a real network test
- Spring tests: separate business rules, wiring and transport
- Spring ApplicationContextRunner: check conditional assembly in isolation
- Spring MockMvc standalone tests: know which HTTP layers were assembled
- Spring test failures: prove the layer that can reject the request
- Test a Spring worker at admission, lease and replay boundaries
- Test Spring JWT authorization through filters, service proxy and SQL
- Spring command rollback test: inspect state after an injected failure
- Spring MockMvc multipart tests: what the fixture proves
- Spring relay failure trace: inspect persisted state at each cut point
- Spring relay integration tests: prove the boundaries H2 cannot
- Spring schema rollout tests: check old and new writers at every phase
- Spring Boot migration tests: distinguish a test starter from a runtime rollout
- Spring release tests: distinguish context checks from process and platform checks
- Test Spring RestClient on a socket without claiming a remote service
- Spring Boot config tests: what a child JVM proves and what deployment still owes
- Spring Boot file-tree tests: prove binding without claiming secret delivery
Continue learning
Boot Foundations, Spring Core, Web APIs, Data & Transactions, Security, Production, Exercises, Quizzes, Projects.
