Skip to content

Unit test for checkout PR - 2073 - #2084

Merged
poojah-adyen merged 1 commit into
mainfrom
checkout-unit-test
Oct 12, 2026
Merged

poojah-adyen merged 1 commit into
mainfrom
checkout-unit-test

Conversation

@poojah-adyen

Copy link
Copy Markdown
Contributor

Description

Tested scenarios

Fixed issue:

@poojah-adyen
poojah-adyen requested a review from a team as a code owner October 12, 2026 14:18

@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 adds several unit tests in CheckoutTest.java to verify serialization, deserialization, and API responses for various payment features, including PayByBankCA, OPI requests/responses, Klarna network details, line item risk categories, and Satispay. It also updates mock JSON responses to include new fields like payable, accountUpdate, and networkToken. The review feedback suggests replacing assertEquals(Boolean.TRUE, ...) with the more idiomatic assertTrue(...) for boolean assertions across multiple test cases to improve readability.

Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
Comment thread src/test/java/com/adyen/CheckoutTest.java Outdated
@sonarqubecloud

Copy link
Copy Markdown

@poojah-adyen
poojah-adyen added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit a259245 Oct 12, 2026
8 checks passed
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.

2 participants