-
Notifications
You must be signed in to change notification settings - Fork 1k
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
assertSame/assertNotSame broken after GITHUB-2296 #2486
Comments
Was about to report this, thanks! |
Are there any plans to release 7.4.1 with this fix? Broken assertion seems like important enough part of test framework to release fix/patch? |
@Axinet Sorry, no plan for a |
It looked like I have, but after verification (I switched broken assertion to use AssertJ instead of TestNG assertion) it looks like for now 7.3.0 has no drawbacks in compare to 7.4.0. The issue we have is located somewhere elsewhere, although looked similar to one of the solved issues for 7.4.0. |
It is too much effort to deal with many branches. The fix will be included in the next release. |
TestNG Version
7.4.0 (7.3.0 worked fine)
Expected behavior
assertSame(object.clone(), object)
returns falseActual behavior
assertSame(object.clone(), object)
returns trueDescription
assertSame/assertNotSame should use
==
operator, but notequals
method to compare the same objects to identify they are the same object or different objectsIs the issue reproductible on runner?
Test case sample
The text was updated successfully, but these errors were encountered: