Testing a Web Adapter with Integration Tests
Explore how to test web adapters within Hexagonal Architecture by using Spring Boot integration tests. Understand the process of validating input mapping from JSON to use case commands, verifying HTTP response status, and ensuring the web controller operates correctly within the framework's context.
We'll cover the following...
Moving outward to another layer, we arrive at our adapters. Let’s discuss how a web adapter can be tested.
Recall that a web adapter takes input (for example in the form of
The send money controller test
In the test for a web adapter, we ...