behrangsa commented on issue #31: Added non-blocking File digest methods
URL: https://github.com/apache/commons-codec/pull/31#issuecomment-559949917
 
 
   @aherbert I fixed those issues, but for some reason coveralls reports that 
they are not covered yet:
   
   ```java
       @Test
       public void testNonBlockingDigestRandomAccessFile() throws IOException {
           Assume.assumeTrue(DigestUtils.isAvailable(messageDigestAlgorithm));
   
           final byte[] expected = digestTestData();
   
           Assert.assertArrayEquals(expected,
                   DigestUtils.nonblockingDigest(
                           DigestUtils.getDigest(messageDigestAlgorithm), 
getTestRandomAccessFile()
                   )
           );
   
           Assert.assertArrayEquals(expected,
                   DigestUtils.nonblockingDigest(
                           DigestUtils.getDigest(messageDigestAlgorithm), 
getTestRandomAccessFile()
                   )
           );
       }
   
       @Test
       public void testNonBlockingDigestFile() throws IOException {
           Assume.assumeTrue(DigestUtils.isAvailable(messageDigestAlgorithm));
   
           final byte[] expected = digestTestData();
   
           Assert.assertArrayEquals(
                   expected,
                   DigestUtils.nonblockingDigest(
                           DigestUtils.getDigest(messageDigestAlgorithm), 
getTestFile()
                   )
           );
   
           Assert.assertArrayEquals(
                   expected,
                   DigestUtils.nonblockingDigest(
                           DigestUtils.getDigest(messageDigestAlgorithm), 
getTestFile()
                   )
           );
       }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to