commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1072761 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/BaseNCodecTest.java
Date Sun, 20 Feb 2011 22:03:07 GMT
Author: ggregory
Date: Sun Feb 20 22:03:06 2011
New Revision: 1072761

URL: http://svn.apache.org/viewvc?rev=1072761&view=rev
Log:
Better test coverage.

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

Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/BaseNCodecTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/BaseNCodecTest.java?rev=1072761&r1=1072760&r2=1072761&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/BaseNCodecTest.java
(original)
+++ commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/BaseNCodecTest.java
Sun Feb 20 22:03:06 2011
@@ -125,6 +125,8 @@ public class BaseNCodecTest extends Test
     }
 
     public void testContainsAlphabetOrPad() {
+        assertFalse(codec.containsAlphabetOrPad(null));
+        assertFalse(codec.containsAlphabetOrPad(new byte[]{}));
         assertTrue(codec.containsAlphabetOrPad("OK".getBytes()));
         assertTrue(codec.containsAlphabetOrPad("OK ".getBytes()));
         assertFalse(codec.containsAlphabetOrPad("ok ".getBytes()));



Mime
View raw message