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

[#12048] Migrate tests for GetNotificationActionTest #13210

Merged
merged 8 commits into from
Feb 28, 2025

Conversation

InfinityTwo
Copy link
Contributor

@InfinityTwo InfinityTwo commented Feb 2, 2025

Part of #12048

Outline of Solution
Added the unit tests for GetNotificationActionTest for PostgreSQL.

PS: This is not a duplicate of #13219 if anyone gets confused by the similar name

Copy link
Contributor

@yuanxi1 yuanxi1 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, great work!

Comment on lines +69 to +70
GetNotificationAction action = getAction(Const.ParamsNames.NOTIFICATION_ID, UUID.randomUUID().toString());
EntityNotFoundException enfe = assertThrows(EntityNotFoundException.class, action::execute);
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor style suggestion: Consider adding a blank line between the action and the assertions to improve readability.

Comment on lines +76 to +77
GetNotificationAction action = getAction(Const.ParamsNames.NOTIFICATION_ID, null, new String[] {});
InvalidHttpParameterException ihpe = assertThrows(InvalidHttpParameterException.class, action::execute);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@domoberzin domoberzin requested a review from yuanxi1 February 16, 2025 14:14
Copy link
Contributor

@domoberzin domoberzin left a comment

Choose a reason for hiding this comment

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

Apart from the style comments, this looks good to me. thanks for the work!

@jasonqiu212 jasonqiu212 added the s.FinalReview The PR is ready for final review label Feb 27, 2025
@domoberzin
Copy link
Contributor

I think we can merge this in 😆

@domoberzin domoberzin added s.ToMerge The PR is approved by all reviewers including final reviewer; ready for merging and removed s.FinalReview The PR is ready for final review labels Feb 28, 2025
@domoberzin domoberzin merged commit 9c774b3 into TEAMMATES:master Feb 28, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s.ToMerge The PR is approved by all reviewers including final reviewer; ready for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants