commons-commits mailing list archives

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

URL: http://svn.apache.org/r1637840
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=1637840&r1=1637839&r2=1637840&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:36:31 2014
@@ -293,9 +293,13 @@ public class HexTest {
     }
 
     @Test
-    public void testEncodeEmpty() throws EncoderException {
+    public void testEncodeHexBytesEmpty() throws EncoderException {
         assertTrue(Arrays.equals(new char[0], Hex.encodeHex(new byte[0])));
         assertTrue(Arrays.equals(new byte[0], new Hex().encode(new byte[0])));
+    }
+
+    @Test
+    public void testEncodeStringEmpty() throws EncoderException {
         assertTrue(Arrays.equals(new char[0], (char[]) new Hex().encode("")));
     }
 



Mime
View raw message