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

Data provider mismatch in the tests #7

Open
pgrt opened this issue Dec 14, 2023 · 0 comments
Open

Data provider mismatch in the tests #7

pgrt opened this issue Dec 14, 2023 · 0 comments

Comments

@pgrt
Copy link

pgrt commented Dec 14, 2023

Hello,

I am the maintainer of http-nio in Debian. I have just packaged version 1.1.0 and I get test failures because of a mismatch between a data provider and the arguments of the test: the data provider returns 10 while a long is expected:

Gradle suite > Gradle test > org.broadinstitute.http.nio.HttpSeekableByteChannelUnitTest.testSeekBeforeRead FAILED
org.testng.internal.reflect.MethodMatcherException:
Data provider mismatch
Method: testSeekBeforeRead([Parameter{index=0, type=java.net.URI, declaredAnnotations=[]}, Parameter{index=1, type=long, declaredAnnotations=[]}, Parameter{index=2, type=java.nio.file.Path, declaredAnnotations=[]}])
Arguments: [(java.net.URI)https://magicdgs.github.io/jsr203-http/file1.txt,(java.lang.Integer)10,(sun.nio.fs.UnixPath)docs/file1.txt]
Running Test: Test method testSeekShouldReopen(org.broadinstitute.http.nio.HttpSeekableByteChannelUnitTest)

Gradle suite > Gradle test > org.broadinstitute.http.nio.HttpSeekableByteChannelUnitTest.testSeekShouldReopen FAILED
org.testng.internal.reflect.MethodMatcherException:
Data provider mismatch
Method: testSeekShouldReopen([Parameter{index=0, type=java.net.URI, declaredAnnotations=[]}, Parameter{index=1, type=long, declaredAnnotations=[]}, Parameter{index=2, type=java.nio.file.Path, declaredAnnotations=[]}])
Arguments: [(java.net.URI)https://magicdgs.github.io/jsr203-http/file1.txt,(java.lang.Integer)10,(sun.nio.fs.UnixPath)docs/file1.txt]
Running Test: Test method testSeekToBeginning(org.broadinstitute.http.nio.HttpSeekableByteChannelUnitTest)

Gradle suite > Gradle test > org.broadinstitute.http.nio.HttpSeekableByteChannelUnitTest.testSeekToBeginning FAILED
org.testng.internal.reflect.MethodMatcherException:
Data provider mismatch
Method: testSeekToBeginning([Parameter{index=0, type=java.net.URI, declaredAnnotations=[]}, Parameter{index=1, type=long, declaredAnnotations=[]}, Parameter{index=2, type=java.nio.file.Path, declaredAnnotations=[]}])
Arguments: [(java.net.URI)https://magicdgs.github.io/jsr203-http/file1.txt,(java.lang.Integer)10,(sun.nio.fs.UnixPath)docs/file1.txt]
Running Test: Test method testSeekToSamePosition(org.broadinstitute.http.nio.HttpSeekableByteChannelUnitTest)

Gradle suite > Gradle test > org.broadinstitute.http.nio.HttpSeekableByteChannelUnitTest.testSeekToSamePosition FAILED
org.testng.internal.reflect.MethodMatcherException:
Data provider mismatch
Method: testSeekToSamePosition([Parameter{index=0, type=java.net.URI, declaredAnnotations=[]}, Parameter{index=1, type=long, declaredAnnotations=[]}, Parameter{index=2, type=java.nio.file.Path, declaredAnnotations=[]}])
Arguments: [(java.net.URI)https://magicdgs.github.io/jsr203-http/file1.txt,(java.lang.Integer)10,(sun.nio.fs.UnixPath)docs/file1.txt]

The attached patch fixes this.

Best,

Pierre

data_providers_mismatches.txt

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

1 participant