-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hello,
While packaging version 1.1.0 of http-nio in Debian, I got test failures related to ambiguous assertions:
/<>/src/test/java/org/broadinstitute/http/nio/RetryHandlerUnitTest.java:75: error: reference to assertEquals is ambiguous
Assert.assertEquals(DEFAULT_RETRY_HANDLER.runWithRetries(() -> 3), 3);
^
both method assertEquals(Object,Object) in Assert and method assertEquals(int,int) in Assert match
/<>/src/test/java/org/broadinstitute/http/nio/RetryHandlerUnitTest.java:103: error: reference to assertEquals is ambiguous
Assert.assertEquals(DEFAULT_RETRY_HANDLER.tryOnceThenWithRetries(
^
both method assertEquals(Object,Object) in Assert and method assertEquals(int,int) in Assert match
/<>/src/test/java/org/broadinstitute/http/nio/RetryHandlerUnitTest.java:113: error: reference to assertEquals is ambiguous
Assert.assertEquals(DEFAULT_RETRY_HANDLER.tryOnceThenWithRetries(
^
both method assertEquals(Object,Object) in Assert and method assertEquals(int,int) in Assert match
/<>/src/test/java/org/broadinstitute/http/nio/RetryHandlerUnitTest.java:147: error: reference to assertEquals is ambiguous
Assert.assertEquals(DEFAULT_RETRY_HANDLER.tryOnceThenWithRetries(
^
both method assertEquals(Object,Object) in Assert and method assertEquals(int,int) in Assert match
/<>/src/test/java/org/broadinstitute/http/nio/RetryHandlerUnitTest.java:176: error: reference to assertEquals is ambiguous
Assert.assertEquals(NO_RETRIES_HANDLER.runWithRetries(() -> 3), 3);
^
both method assertEquals(Object,Object) in Assert and method assertEquals(int,int) in Assert match
The enclosed patch fixes this.
Best,
Pierre