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 CreateFeedbackResponseCommentActionTest #13248

Conversation

BunnyHoppp
Copy link
Contributor

Part of #12048

Outline of Solution

Change CreateFeedbackResponseCommentActionTest.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
…branch-CreateFeedbackResponseCommentActionTest
Test won't affect other tests that uses HibernateUtil
Followed implementation of mocking HibernateUtil in
other test classes to eliminate dependencies with
other tests
Removed initialisation of typicalInstructor in the
field.
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.

Really comprehensive work, just some minor comments from my side. Good job!

@domoberzin domoberzin added the s.Ongoing The PR is being worked on by the author(s) label Mar 12, 2025
Test case where instructor with only either
section privilege cannot access comment.
Added that the accessControl is within grace period
for better clarity
@domoberzin domoberzin requested a review from jasonqiu212 March 24, 2025 05:07
@domoberzin domoberzin added s.FinalReview The PR is ready for final review and removed s.Ongoing The PR is being worked on by the author(s) labels Mar 24, 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.

lgtm!

@jasonqiu212 jasonqiu212 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 25, 2025
@jasonqiu212 jasonqiu212 merged commit 235f6df into TEAMMATES:master Mar 25, 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.

3 participants