Testing Java Microservice
summary
Testing strategy layers unit, component and integration tests and adds service-specific tools to keep fast feedback while validating real deployments. Examples use Arquillian component tests (8s startup) with ShrinkWrap, JUnit, AssertJ and Mockito for fast local verification; Hoverfly capture-replay to virtualize external APIs so tests run offline; Docker/Fabric8 and Flyway+Postgres containers to run real DB and deployment checks; and Pact consumer/provider contracts to catch breaking API changes before production. Demos show those pipelines actually work.
AI-written summary · about
chapters (8)
- 0:00Start
- 3:32Anatomy of Microservice
- 6:28Testing Evolution
- 8:43What does this mean in terms of testing?
- 13:37Unit Testing
- 17:35Test Doubles
- 47:49Questions
- 51:18Component Testing
related talks
47mMicroservices Testing with Java
42mMicroservice Testing Techniques
45mBuilding a successful test automation architecture in a microservices environment
56mWrite Tests That Spark Flow
28mMy Story of Microservices Testing
01h 20mIntegration Testing from the Trenches
01h 46mHow Java developers should test their applications (RU)
49mTesting Microservices
