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 2015/09/03 22:18:06 UTC

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

Author: ggregory
Date: Thu Sep  3 20:18:05 2015
New Revision: 1701128

URL: http://svn.apache.org/r1701128
Log:
[CODEC-203] Add convenience method decodeHex(String).

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

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64Test.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64Test.java?rev=1701128&r1=1701127&r2=1701128&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64Test.java (original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64Test.java Thu Sep  3 20:18:05 2015
@@ -1230,7 +1230,7 @@ public class Base64Test {
 		final byte[] b1 = StringUtils.getBytesUtf8("Hello World");
 		final byte[] b2 = new byte[0];
 		final byte[] b3 = null;
-		final byte[] b4 = Hex.decodeHex("2bf7cc2701fe4397b49ebeed5acc7090".toCharArray()); // for
+		final byte[] b4 = Hex.decodeHex("2bf7cc2701fe4397b49ebeed5acc7090"); // for
 																							// url-safe
 																							// tests
 
@@ -1254,7 +1254,7 @@ public class Base64Test {
 		final String s3 = null;
 		final String s4a = "K/fMJwH+Q5e0nr7tWsxwkA==\r\n";
 		final String s4b = "K_fMJwH-Q5e0nr7tWsxwkA";
-		final byte[] b4 = Hex.decodeHex("2bf7cc2701fe4397b49ebeed5acc7090".toCharArray()); // for
+		final byte[] b4 = Hex.decodeHex("2bf7cc2701fe4397b49ebeed5acc7090"); // for
 																							// url-safe
 																							// tests