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 2014/11/10 14:38:52 UTC

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

Author: ggregory
Date: Mon Nov 10 13:38:52 2014
New Revision: 1637844

URL: http://svn.apache.org/r1637844
Log:
Split test method in two.

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

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/HexTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/HexTest.java?rev=1637844&r1=1637843&r2=1637844&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/HexTest.java (original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/HexTest.java Mon Nov 10 13:38:52 2014
@@ -243,9 +243,13 @@ public class HexTest {
     }
 
     @Test
-    public void testDecodeEmpty() throws DecoderException {
+    public void testDecodeByteArrayEmpty() throws DecoderException {
         assertTrue(Arrays.equals(new byte[0], Hex.decodeHex(new char[0])));
         assertTrue(Arrays.equals(new byte[0], new Hex().decode(new byte[0])));
+    }
+
+    @Test
+    public void testDecodeStringEmpty() throws DecoderException {
         assertTrue(Arrays.equals(new byte[0], (byte[]) new Hex().decode("")));
     }