Skip to content

Commit 8801ec7

Browse files
committed
Split test method in two.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1637853 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7f5a9ac commit 8801ec7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/test/java/org/apache/commons/codec/binary/HexTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import static org.junit.Assert.fail;
2424

2525
import java.io.UnsupportedEncodingException;
26+
import java.nio.ByteBuffer;
2627
import java.nio.charset.Charset;
2728
import java.nio.charset.UnsupportedCharsetException;
2829
import java.util.Arrays;
@@ -199,10 +200,14 @@ public void testDecodeBadCharacterPos1() {
199200

200201
@Test
201202
public void testDecodeByteArrayEmpty() throws DecoderException {
202-
assertTrue(Arrays.equals(new byte[0], Hex.decodeHex(new char[0])));
203203
assertTrue(Arrays.equals(new byte[0], new Hex().decode(new byte[0])));
204204
}
205205

206+
@Test
207+
public void testDecodeCharArrayEmpty() throws DecoderException {
208+
assertTrue(Arrays.equals(new byte[0], Hex.decodeHex(new char[0])));
209+
}
210+
206211
@Test
207212
public void testDecodeByteArrayOddCharacters() {
208213
try {

0 commit comments

Comments
 (0)