-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Conversation
There was a problem hiding this 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!
src/test/java/teammates/sqlui/webapi/GetNotificationActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetNotificationActionTest.java
Outdated
Show resolved
Hide resolved
GetNotificationAction action = getAction(Const.ParamsNames.NOTIFICATION_ID, UUID.randomUUID().toString()); | ||
EntityNotFoundException enfe = assertThrows(EntityNotFoundException.class, action::execute); |
There was a problem hiding this comment.
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.
GetNotificationAction action = getAction(Const.ParamsNames.NOTIFICATION_ID, null, new String[] {}); | ||
InvalidHttpParameterException ihpe = assertThrows(InvalidHttpParameterException.class, action::execute); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this 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!
I think we can merge this in 😆 |
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