commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1382482 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
Date Sun, 09 Sep 2012 12:33:50 GMT
Author: sebb
Date: Sun Sep  9 12:33:50 2012
New Revision: 1382482

URL: http://svn.apache.org/viewvc?rev=1382482&view=rev
Log:
Suppress deprecation warnings for tests that exerecise deprecated methods

Modified:
    commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java?rev=1382482&r1=1382481&r2=1382482&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
(original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
Sun Sep  9 12:33:50 2012
@@ -263,6 +263,7 @@ public class DigestUtilsTest {
             DigestUtils.sha512Hex(new ByteArrayInputStream(testData)));
 }
 
+    @SuppressWarnings("deprecation") // deliberate tests of deprecated code
     @Test
     public void testShaHex() throws IOException {
         // Examples from FIPS 180-1
@@ -277,6 +278,7 @@ public class DigestUtilsTest {
                 DigestUtils.shaHex(new ByteArrayInputStream(testData)));
     }
 
+    @SuppressWarnings("deprecation") // deliberate tests of deprecated code
     @Test
     public void testShaUpdateWithByteArray(){
         final String d1 = "C'est un homme qui rentre dans un café, et plouf";
@@ -295,6 +297,7 @@ public class DigestUtilsTest {
         assertEquals(expectedResult, actualResult);
     }
 
+    @SuppressWarnings("deprecation") // deliberate tests of deprecated code
     @Test
     public void testShaUpdateWithString(){
         final String d1 = "C'est un homme qui rentre dans un café, et plouf";



Mime
View raw message