Skip to content
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

Getting Ambiguous method overloading for method org.testng.Assert.assertEquals() in Groovy version 3.0.19 #3634

Closed
PrakratiAgarwal123 opened this issue Jan 10, 2024 · 1 comment

Comments

@PrakratiAgarwal123
Copy link

Ambiguous method overloading for method org.testng.Assert#assertEquals. Cannot resolve which method to invoke for [class java.lang.Integer, class java.lang.Integer] due to overlapping prototypes between: [int, class java.lang.Integer] [class java.lang.Integer, int]

Code is -
List listOfClassFields = MyClass.classMethod("CO").read()
Assert.assertEquals(7,listOfClassFields.size())

@sbrannen
Copy link
Member

Hi @PrakratiAgarwal123,

This is the issue tracker for JUnit 5.

The Assert class you're using is from TestNG.

Thus, please raise an issue with the TestNG team.

In light of the above, I'm closing this issue.

@sbrannen sbrannen closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2024
@sbrannen sbrannen changed the title Getting Ambiguous method overloading for method org.testng.Assert#assertEquals. in groovy version 3.0.19 Getting Ambiguous method overloading for method org.testng.Assert.assertEquals() in Groovy version 3.0.19 Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants