Integration testing
The purpose of integration testing—also known as functional testing—is to verify the system as a whole. This is also known as black-box testing. Throughout this process, we provide an input, expect the output, verify it, and don't worry about the internals of the code. We just give an input and compare the actual output against the expected one. This kind of testing is more suitable for verifying the RESTful APIs. Once the services are deployed, we make a call to the REST endpoints with an input and verify it for the HTTP status code, response body, response header (if any), and so on.
We will write a simple integration test for the GET organization API. Since this is an integration test case, the GET organization API is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access