Microservices Testing with Java
summary
Focuses on building a practical testing foundation: prioritize many fast unit tests and fewer integration/end-to-end checks, then concentrate on integration and component tests as the next layer. Demonstrates concrete tools and setups: JUnit 5, Mockito, AssertJ, RestAssured for controllers, MockServer/WireMock for remote services, Testcontainers to spin real databases in Docker and Spring’s ServiceConnection to inject ports/credentials, out‑of‑process checks against a Jib-built container, and ReportPortal for live results, logs, screenshots and Jira-linked investigation.
AI-written summary · about
chapters (15)
- 0:00Introduction to microservices
- 1:17Testing pyramid for microservices
- 3:04Unit tests in microservices
- 6:43Integration tests overview
- 11:02Controller integration testing
- 13:51Database integration testing
- 17:42REST client integration testing
- 21:17Component testing approaches
- 24:10In-process component tests
- 26:43Out-of-process component tests
- 29:16End-to-end testing basics
- 33:10Test execution reporting
- 35:21Cross-execution test analysis
- 37:54Reporting with Report Portal
- 44:19Additional testing tips
related talks
02h 36mTesting Java Microservice
01h 46mHow Java developers should test their applications (RU)
57mModern Testing Tools for Java Developers
46mModern Testing Tools for Java Developers
31mModern Testing Tools for Java Developers
01h 20mIntegration Testing from the Trenches
41mSoftware Architecture — Yes, on Tests
42mMicroservice Testing Techniques
