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] Add deep comparison for entities in verifyEquals for E2E #12892

Merged
merged 6 commits into from
Mar 18, 2024

Conversation

domlimm
Copy link
Contributor

@domlimm domlimm commented Mar 12, 2024

Part of #12048.

This comment was marked as outdated.

@cedricongjh cedricongjh added the s.Ongoing The PR is being worked on by the author(s) label Mar 14, 2024
@domlimm domlimm marked this pull request as ready for review March 16, 2024 13:42
@domlimm domlimm added s.ToReview The PR is waiting for review(s) and removed s.Ongoing The PR is being worked on by the author(s) labels Mar 16, 2024
Comment on lines 73 to 74
assertEquals(expectedQuestionDetails.getQuestionText(), actualQuestion.getQuestionBrief());
assertEquals(expectedQuestionDetails.getQuestionType(), actualQuestion.getQuestionType());
Copy link
Contributor

Choose a reason for hiding this comment

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

we should compare the json string of the question details, similar to feedbackresponse

Comment on lines 160 to 161
assertEquals(expectedStudent.getTeamName(), actualStudent.getTeamName());
assertEquals(expectedStudent.getSectionName(), actualStudent.getSectionName());
Copy link
Contributor

Choose a reason for hiding this comment

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

for getTeamName and getSectionName, there might be null pointer exceptions as a student might not have a team or section, let's comment these out and fix this bug in another PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah that makes sense. thank you!

Copy link
Contributor

@cedricongjh cedricongjh 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!

@cedricongjh cedricongjh merged commit ddd6f09 into TEAMMATES:master Mar 18, 2024
11 checks passed
@cedricongjh cedricongjh added this to the V9.0.0-beta.1 milestone Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s.ToReview The PR is waiting for review(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants