Skip to content

Add tests for checkout#2014

Open
poojah-adyen wants to merge 2 commits into
mainfrom
checkout-test
Open

Add tests for checkout#2014
poojah-adyen wants to merge 2 commits into
mainfrom
checkout-test

Conversation

@poojah-adyen

@poojah-adyen poojah-adyen commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description
This PR adds unit test coverage for the Checkout functionality introduced by the latest OpenAPI (Checkout v72) model update — specifically the new aupay and dbarai payment methods, plus several newly added request models and fields. It also strengthens coverage of the CheckoutPaymentMethod oneOf deserialization by adding a failure-path test.

Tested scenarios

Fixed issue:

@poojah-adyen
poojah-adyen requested a review from a team as a code owner July 23, 2026 08:27

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces unit tests and mock response files for various checkout features, including AuPay and DBarai payment methods, stored token serialization, third-party token redundancy info, shopper conversion ID, and PayPal order updates. The reviewer recommended refactoring the duplicate test cases for AuPay and DBarai payments into a single parameterized test to reduce code duplication and improve maintainability.

Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
@poojah-adyen
poojah-adyen force-pushed the checkout-test branch 2 times, most recently from df85778 to aedfc4d Compare July 23, 2026 09:17
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant