-
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
overloaded assertEquals methods do not work from Groovy #2854
Comments
@ispringer - I will take a look at this over the weekend. |
@krmahadevan - Wow, amazing turnaround time! Thanks! |
@krmahadevan, any chance you can release a 7.7.1 with this fix? It would allow my team to avoid refactoring a couple hundred |
@ispringer - Yes we can do a bug fix release. Lets wait till this weekend to see if there are any more discrepancies that need to be addressed. If there's nothing, then first thing Monday morning (Dec 26) you should see a bug fix release ? @juherr - What do you think ? |
@krmahadevan Great for me. But not need to ask : make a release when you think it is needed. |
@ispringer - I have created a If you are using Maven, then please add the below repository and bump the dependency version to <repository>
<id>maven-central-staging</id>
<url>https://oss.sonatype.org/content/repositories/orgtestng-1085</url>
</repository> If you are using Gradle, then please add the below repository and bump the dependency version to repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/orgtestng-1085' }
} Once I get a confirmation from you, I will go ahead and publish |
@krmahadevan, I just tried it out. All my project's tests run successfully without any |
@ispringer - Thank you for the confirmation. |
Thanks very much. Just had the same issue and this resolved it. |
After upgrading to TestNG 7.7.0, we started seeing a bunch of "Ambiguous method overloading for method org.testng.Assert#assertEquals." GroovyRuntimeExceptions when running our Groovy-based tests. We did not see these exceptions with TestNG 7.4.x.
Note, JUnit 5 had a similar issue, that they have fixed (see junit-team/junit5#1710).
TestNG Version
7.7.0
Expected behavior
The overloaded
Assert#assertEquals
methods should work.Actual behavior
We get exceptions like the following when running our tests:
Is the issue reproducible on runner?
Test case sample
All of these tests fail with TestNG 7.7.0:
Contribution guidelines
In case you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.
The text was updated successfully, but these errors were encountered: