Skip to content

Commit e1232cd

Browse files
committed
Suppress deprecation warnings for tests that exerecise deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1382482 13f79535-47bb-0310-9956-ffa450edef68
1 parent f389b91 commit e1232cd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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";

0 commit comments

Comments
 (0)