Exercise: API Tests
Explore how to extend JUnit 5 by building a custom extension that runs REST API tests using JSON files as input. Learn to verify API contracts like status codes, headers, and responses to enable effective black-box testing of microservices.
We'll cover the following...
We'll cover the following...
Problem Statement
When testing the REST API of a microservice, it’s common practice to treat the service as a black box. Testing is performed by sending requests to the REST API and verifying the response. These requests and responses are contracts of this API. To enable non-technical users to ...