TestNG Version
7.4.0
Assert.assertNotEquals(0L, 0);
or a mehot returning long (primitive):
Assert.assertNotEquals(longMethod(), 0);
Expected behavior
AssertionError
Actual behavior
No error, silent assertion mismatch.
Values are compared as Objects, so Long != Integer.
Is the issue reproductible on runner?
Test case sample
https://github.com/cdalexndr/testng-issue-2561
Oddly, If I add the above test into the testng main repo project test, the test works.
It may also be compiler dependent.
TestNG Version
7.4.0
Assert.assertNotEquals(0L, 0);or a mehot returning long (primitive):
Assert.assertNotEquals(longMethod(), 0);Expected behavior
AssertionError
Actual behavior
No error, silent assertion mismatch.
Values are compared as Objects, so Long != Integer.
Is the issue reproductible on runner?
Test case sample
https://github.com/cdalexndr/testng-issue-2561
Oddly, If I add the above test into the testng main repo project test, the test works.
It may also be compiler dependent.