Tien Nguyen Van

47%
Flag icon
When I talk about stubbing downstream collaborators, I mean that we create a stub service that responds with canned responses to known requests from the service under test. For example, I might tell my stub points bank that when asked for the balance of customer 123, it should return 15,000. The test doesn’t care if the stub is called 0, 1, or 100 times.
Building Microservices: Designing Fine-Grained Systems
Rate this book
Clear rating