-
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] Add deep comparison for entities in verifyEquals
for E2E
#12892
[#12048] Add deep comparison for entities in verifyEquals
for E2E
#12892
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
7c6d31d
to
16a2ce7
Compare
a482ee3
to
e4136b9
Compare
assertEquals(expectedQuestionDetails.getQuestionText(), actualQuestion.getQuestionBrief()); | ||
assertEquals(expectedQuestionDetails.getQuestionType(), actualQuestion.getQuestionType()); |
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.
we should compare the json string of the question details, similar to feedbackresponse
assertEquals(expectedStudent.getTeamName(), actualStudent.getTeamName()); | ||
assertEquals(expectedStudent.getSectionName(), actualStudent.getSectionName()); |
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.
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
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.
ah that makes sense. thank you!
0f94dec
to
0427b6f
Compare
0427b6f
to
048dc3e
Compare
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.
LGTM, thanks!
Part of #12048.