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:
parent
20295a04b9
commit
d7e8948727
|
@ -48,6 +48,7 @@ public void testConstructor() {
|
||||||
assertFalse(Modifier.isFinal(BooleanUtils.class.getModifiers()));
|
assertFalse(Modifier.isFinal(BooleanUtils.class.getModifiers()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation") // intentional test of deprecated method
|
||||||
@Test
|
@Test
|
||||||
public void testToCharacterObject_char() {
|
public void testToCharacterObject_char() {
|
||||||
assertEquals(new Character('a'), CharUtils.toCharacterObject('a'));
|
assertEquals(new Character('a'), CharUtils.toCharacterObject('a'));
|
||||||
|
@ -67,6 +68,7 @@ public void testToCharacterObject_char() {
|
||||||
assertEquals(i, ch.charValue());
|
assertEquals(i, ch.charValue());
|
||||||
assertEquals(i, ch2.charValue());
|
assertEquals(i, ch2.charValue());
|
||||||
}
|
}
|
||||||
|
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject('a'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -76,7 +78,6 @@ public void testToCharacterObject_String() {
|
||||||
assertEquals(new Character('a'), CharUtils.toCharacterObject("a"));
|
assertEquals(new Character('a'), CharUtils.toCharacterObject("a"));
|
||||||
assertEquals(new Character('a'), CharUtils.toCharacterObject("abc"));
|
assertEquals(new Character('a'), CharUtils.toCharacterObject("abc"));
|
||||||
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject("a"));
|
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject("a"));
|
||||||
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject('a'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -1228,6 +1228,7 @@ public void testChop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation") // intentional test of deprecated method
|
||||||
@Test
|
@Test
|
||||||
public void testChomp() {
|
public void testChomp() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue