Loading…
23+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes unit vs integration test, spring boot test annotation, webmvctest.
Suggested path
Topics follow a teaching order. Each answer ends with a clear Next question control so you can move forward without hunting the list.
Spring testing (fresher level) introduces testing Spring applications. This module is an elevation arc: it opens with unit vs integration testing (the distinction and the Spring context boundary), then the @SpringBootTest annotation (the integration-test workhorse), then @WebMvcTest (the slice test for controllers). Each topic builds the testing-strategy picture a fresher needs.
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–23 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–23 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q23.