You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/09/09 20:41:17 UTC

svn commit: r1382558 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java

Author: ggregory
Date: Sun Sep  9 18:41:17 2012
New Revision: 1382558

URL: http://svn.apache.org/viewvc?rev=1382558&view=rev
Log:
Branch coverage for org.apache.commons.codec.binary.StringUtils.newString(byte[], String).

Modified:
    commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java?rev=1382558&r1=1382557&r2=1382558&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java (original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java Sun Sep  9 18:41:17 2012
@@ -136,6 +136,11 @@ public class StringUtilsTest {
     }
 
     @Test
+    public void testNewStringNullInput() {
+        Assert.assertNull(StringUtils.newString(null, "UNKNOWN"));
+    }
+
+    @Test
     public void testNewStringIso8859_1() throws UnsupportedEncodingException {
         String charsetName = "ISO-8859-1";
         testNewString(charsetName);