Closed tituswe closed 1 year ago
** I have confirmed that the issue is with the assertEquals statement on line 82 in the first attached image. Commenting out the line passes the testcases that are failing
@tituswe push your code to a branch and give the link here so that others can look at the scenario more closely
Sorry all, I have fixed the bug... it was just an issue with checking Client#equals(). Haha :')
IntelliJ Version
IntelliJ IDEA 2022.3.1 (Community Edition) Build #IC-223.8214.52, built on December 20, 2022 Runtime version: 17.0.5+1-b653.23 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.6.3 GC: G1 Young Generation, G1 Old Generation Memory: 1024M Cores: 8 Metal Rendering is ON Non-Bundled Plugins: com.vermouthx.xcode-theme (1.6.1) IdeaVIM (2.1.0) CheckStyle-IDEA (5.76.0)
Kotlin: 223-1.7.21-release-272-IJ8214.52
Reference Image
Problem
I made some edits to my team's
CommandResult
whereby I store the targetClient
of each command as a field as opposed to the previous version ofCommandResult
where theClient
was formatted into thefeedbackToUser
field.Before:
After:
Details
As you can see from the screenshot attached, inside the debug console the parameters being compared in the
assertEquals(...)
are all the same, yet the test cases fail specific to theEditCommandTest
file.I get the following:
Would anyone know what cld be possibly wrong? Do feel free to post more questions for me to clarify. Thank you!