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 UpdateFeedbackResponseCommentActionTest #13251

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

BunnyHoppp
Copy link
Contributor

Part of #12048

Outline of Solution

Change UpdateFeedbackResponseCommentActionTest.java to ensure compatibility with the PostgreSQL database following the database migration.

Test execute method with some positive
and negative test cases

Test checkSpecificAccessControl method
with some positive and negative test
cases
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.

Overall, really comprehensive, great work!

JsonResult r = getJsonResult(action);
FeedbackResponseCommentData response = (FeedbackResponseCommentData) r.getOutput();

assertEquals(updatedComment.getCommentText(), response.getCommentText());
Copy link
Contributor

Choose a reason for hiding this comment

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

abit of a nit: this particular sequence of assertions seems quite repetitive. Perhaps it could be better to extract out into a general method to compare the response/comments/other parameters?

Copy link
Contributor

Choose a reason for hiding this comment

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

@BunnyHoppp Is it possible to refactor this?

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

@jasonqiu212 jasonqiu212 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 above comment, lgtm! really well done migrating this huge test 👍

@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 Mar 24, 2025
Copy link
Contributor

@xenosf xenosf left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the hard work

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