medium10 pts · first answer countstest-automationapi-testingtest-doubles
Stubbing a downstream HTTP service
A Java service calls a credit-score API over HTTP. In component tests, you want to simulate a 200, a 503 and a 4-second delay from that API. What fits best?
Discussion 0
Join free to post in the discussion.
Related questions
- API or UI testAutomation Test Engineer
- Status code for a created resourceAutomation Test Engineer
- Which method is idempotentAutomation Test Engineer
- Why validate a JSON schemaAutomation Test Engineer
- Arrange, Act, AssertAutomation Test Engineer
- An upside-down test pyramidAutomation Test Engineer
- Sharing fixtures in pytestAutomation Test Engineer
- Asserting that an error is raisedAutomation Test Engineer