commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1637853 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/HexTest.java
Date Mon, 10 Nov 2014 13:45:17 GMT
Author: ggregory
Date: Mon Nov 10 13:45:16 2014
New Revision: 1637853

URL: http://svn.apache.org/r1637853
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=1637853&r1=1637852&r2=1637853&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:45:16 2014
@@ -23,6 +23,7 @@ import static org.junit.Assert.assertTru
 import static org.junit.Assert.fail;
 
 import java.io.UnsupportedEncodingException;
+import java.nio.ByteBuffer;
 import java.nio.charset.Charset;
 import java.nio.charset.UnsupportedCharsetException;
 import java.util.Arrays;
@@ -199,11 +200,15 @@ public class HexTest {
 
     @Test
     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 testDecodeCharArrayEmpty() throws DecoderException {
+        assertTrue(Arrays.equals(new byte[0], Hex.decodeHex(new char[0])));
+    }
+
+    @Test
     public void testDecodeByteArrayOddCharacters() {
         try {
             new Hex().decode(new byte[]{65});



Mime
View raw message