@@ -116,11 +116,6 @@ public void testMd2Hex() throws IOException {
116116 DigestUtils .md2Hex (ByteBuffer .wrap (testData )));
117117}
118118
119- @ Test
120- public void testMd2HexFile () throws IOException {
121- assertEquals (DigestUtils .md2Hex (testData ), DigestUtils .md2Hex (testFile ));
122- }
123-
124119 /**
125120 * An MD2 hash converted to hex should always be 32 characters.
126121 */
@@ -177,11 +172,6 @@ public void testMd5Hex() throws IOException {
177172 DigestUtils .md5Hex (ByteBuffer .wrap (testData )));
178173}
179174
180- @ Test
181- public void testMd5HexFile () throws IOException {
182- assertEquals (DigestUtils .md5Hex (testData ), DigestUtils .md5Hex (testFile ));
183- }
184-
185175 /**
186176 * An MD5 hash converted to hex should always be 32 characters.
187177 */
@@ -254,11 +244,6 @@ public void testSha1Hex() throws IOException {
254244 DigestUtils .sha1Hex (ByteBuffer .wrap (testData )));
255245 }
256246
257- @ Test
258- public void testSha1HexFile () throws IOException {
259- assertEquals (DigestUtils .sha1Hex (testData ), DigestUtils .sha1Hex (testFile ));
260- }
261-
262247 @ Test
263248 public void testSha1UpdateWithByteArray (){
264249 final String d1 = "C'est un homme qui rentre dans un café, et plouf" ;
@@ -323,12 +308,6 @@ public void testSha224() throws IOException {
323308 // Examples from FIPS 180-4?
324309 }
325310
326- @ Test
327- public void testSha224HexFile () throws IOException {
328- assumeJava8 ();
329- assertEquals (DigestUtils .sha224Hex (testData ), DigestUtils .sha224Hex (testFile ));
330- }
331-
332311 @ Test
333312 public void testSha256 () throws IOException {
334313 // Examples from FIPS 180-2
@@ -345,11 +324,6 @@ public void testSha256() throws IOException {
345324 DigestUtils .sha256Hex (ByteBuffer .wrap (testData )));
346325 }
347326
348- @ Test
349- public void testSha256HexFile () throws IOException {
350- assertEquals (DigestUtils .sha256Hex (testData ), DigestUtils .sha256Hex (testFile ));
351- }
352-
353327 @ Test
354328 public void testSha384 () throws IOException {
355329 // Examples from FIPS 180-2
@@ -369,11 +343,6 @@ public void testSha384() throws IOException {
369343 DigestUtils .sha384Hex (ByteBuffer .wrap (testData )));
370344 }
371345
372- @ Test
373- public void testSha384HexFile () throws IOException {
374- assertEquals (DigestUtils .sha384Hex (testData ), DigestUtils .sha384Hex (testFile ));
375- }
376-
377346 @ Test
378347 public void testSha512 () throws IOException {
379348 // Examples from FIPS 180-2
@@ -394,11 +363,6 @@ public void testSha512HexByteBuffer() throws IOException {
394363 assertEquals (DigestUtils .sha512Hex (testData ), DigestUtils .sha512Hex (ByteBuffer .wrap (testData )));
395364 }
396365
397- @ Test
398- public void testSha512HexFile () throws IOException {
399- assertEquals (DigestUtils .sha512Hex (testData ), DigestUtils .sha512Hex (testFile ));
400- }
401-
402366 @ Test
403367 public void testSha512HexInputStream () throws IOException {
404368 assertEquals (DigestUtils .sha512Hex (testData ),
0 commit comments