commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1388058 - in /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3: CharUtilsTest.java StringUtilsTest.java
Date Thu, 20 Sep 2012 15:03:39 GMT
Author: sebb
Date: Thu Sep 20 15:03:39 2012
New Revision: 1388058

URL: http://svn.apache.org/viewvc?rev=1388058&view=rev
Log:
Suppress deprecation warnings

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharUtilsTest.java
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharUtilsTest.java?rev=1388058&r1=1388057&r2=1388058&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharUtilsTest.java Thu
Sep 20 15:03:39 2012
@@ -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

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java?rev=1388058&r1=1388057&r2=1388058&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
Thu Sep 20 15:03:39 2012
@@ -1228,6 +1228,7 @@ public class StringUtilsTest {
         }
     }
 
+    @SuppressWarnings("deprecation") // intentional test of deprecated method
     @Test
     public void testChomp() {
 



Mime
View raw message