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

Ambiguous call to Assert in the tests #317

Open
pgrt opened this issue Nov 27, 2023 · 1 comment
Open

Ambiguous call to Assert in the tests #317

pgrt opened this issue Nov 27, 2023 · 1 comment

Comments

@pgrt
Copy link

pgrt commented Nov 27, 2023

Hello,

In src/test/java/org/genomicsdb/reader/GenomicsDBQueryTest.java in version 1.5.1, there is the call
Assert.assertEquals(intervals.get(0).calls.size(), expected_calls[i]);
which is ambiguous as both method assertEquals(java.lang.Object,java.lang.Object) in org.testng.Assert and method assertEquals(long,long) in org.testng.Assert match. This raises an error, at least with openjdk-17.

Explicitly converting Long to long with
Assert.assertEquals(intervals.get(0).calls.size(), expected_calls[i].longValue());
solves this.

Best,

Pierre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants