File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/codec/digest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ public void testSha512() throws IOException {
263263 DigestUtils .sha512Hex (new ByteArrayInputStream (testData )));
264264}
265265
266+ @ SuppressWarnings ("deprecation" ) // deliberate tests of deprecated code
266267 @ Test
267268 public void testShaHex () throws IOException {
268269 // Examples from FIPS 180-1
@@ -277,6 +278,7 @@ public void testShaHex() throws IOException {
277278 DigestUtils .shaHex (new ByteArrayInputStream (testData )));
278279 }
279280
281+ @ SuppressWarnings ("deprecation" ) // deliberate tests of deprecated code
280282 @ Test
281283 public void testShaUpdateWithByteArray (){
282284 final String d1 = "C'est un homme qui rentre dans un café, et plouf" ;
@@ -295,6 +297,7 @@ public void testShaUpdateWithByteArray(){
295297 assertEquals (expectedResult , actualResult );
296298 }
297299
300+ @ SuppressWarnings ("deprecation" ) // deliberate tests of deprecated code
298301 @ Test
299302 public void testShaUpdateWithString (){
300303 final String d1 = "C'est un homme qui rentre dans un café, et plouf" ;
You can’t perform that action at this time.
0 commit comments