Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including all notification codes as constants #320

Merged

Conversation

RicardoRFaria
Copy link
Contributor

Description

Tested scenarios
Parser of cancellation and chargeback events

Fixed issue:
#307

Question
Do really make sense create tests for every event code? Looking at NotificationRequestItem.class, sounds like you are just testing GSON and the contract of the event.
If it's important to test every case, could you guys provide JSON examples? It is hard to find examples for every event at the site.

- Got all notification codes from : https://docs.adyen.com/development-resources/notifications/understand-notifications#event-codes
- Created tests for cancelation and chageback events
- Dedup of test code at NotificationTest class
@coveralls
Copy link

Coverage Status

Coverage remained the same at 24.508% when pulling a9c2294 on RicardoRFaria:NotificationRequestItemCodes into 761247b on Adyen:develop.

@martinsrenato martinsrenato merged commit 57f03a4 into Adyen:develop Mar 23, 2020
@rikterbeek rikterbeek mentioned this pull request Apr 28, 2020
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.

None yet

6 participants