Suppress deprecation warnings

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388058 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-09-20 15:03:39 +00:00
parent 20295a04b9
commit d7e8948727
2 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@ public class CharUtilsTest {
assertFalse(Modifier.isFinal(BooleanUtils.class.getModifiers()));
}
@SuppressWarnings("deprecation") // intentional test of deprecated method
@Test
public void testToCharacterObject_char() {
assertEquals(new Character('a'), CharUtils.toCharacterObject('a'));
@ -67,6 +68,7 @@ public class CharUtilsTest {
assertEquals(i, ch.charValue());
assertEquals(i, ch2.charValue());
}
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject('a'));
}
@Test
@ -76,7 +78,6 @@ public class CharUtilsTest {
assertEquals(new Character('a'), CharUtils.toCharacterObject("a"));
assertEquals(new Character('a'), CharUtils.toCharacterObject("abc"));
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject("a"));
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject('a'));
}
@Test

View File

@ -1228,6 +1228,7 @@ public class StringUtilsTest {
}
}
@SuppressWarnings("deprecation") // intentional test of deprecated method
@Test
public void testChomp() {