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
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