[payout] Code generation: update services and models#1810
[payout] Code generation: update services and models#1810AdyenAutomationBot wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request cleans up unused imports in the MessageHeaderTest.java file. Feedback suggests enhancing the test suite by adding cases for optional fields in the MessageHeader to ensure they are correctly handled when absent from the JSON input.
|
|
||
| import static org.junit.jupiter.api.Assertions.assertEquals; | ||
| import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
| import static org.junit.jupiter.api.Assertions.assertNull; |
There was a problem hiding this comment.
The removal of the assertNull and assertNotNull imports suggests that test coverage for optional fields may be missing. The existing test only covers the happy path where all fields are present. To make the tests more robust, consider adding cases where optional MessageHeader fields (e.g., protocolVersion, serviceID, deviceID) are absent in the JSON. You can then assert that these fields are null after deserialization.
This PR contains the automated changes for the
payoutservice.The commit history of this PR reflects the
adyen-openapicommits that have been applied.