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 1 commit 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?

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