Modern Testing Tools for Java Developers
summary
Shows concrete tools and how they fit: AssertJ (2.5k GitHub stars) for one‑line recursive field comparisons, soft assertions that report all field failures, and custom assertion classes for business rules; REST‑assured + OpenAPI Generator to auto‑generate request/response models and RequestSpecification code from the spec via a Maven plugin so tests avoid duplicated given/when boilerplate; WireMock docker mappings to run recorded virtual services; an async utility that polls (default 500ms) up to configurable timeouts (example 10s) to wait for eventual consistency.
AI-written summary · about
chapters (14)
- 0:00Introduction to modern testing
- 1:30Speaker introduction
- 2:55AssertJ overview and features
- 5:22Recursive comparison in AssertJ
- 13:05Soft assertions with AssertJ
- 16:46Custom assertions in AssertJ
- 23:15API testing with Rest Assured
- 27:50Scaling API tests with specifications
- 30:24Generating API tests with OpenAPI
- 38:37Testing async systems with Awaitility
- 45:57Mocking APIs with WireMock
- 48:28Service virtualization with WireMock
- 51:40WireMock in Docker
- 52:04Q&A and resources
