Author: ggregory
Date: Fri May 13 19:34:46 2016
New Revision: 1743732
URL: http://svn.apache.org/viewvc?rev=1743732&view=rev
Log:
Sort in AB order.
Modified:
commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
Modified:
commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java?rev=1743732&r1=1743731&r2=1743732&view=diff
==============================================================================
---
commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
(original)
+++
commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
Fri May 13 19:34:46 2016
@@ -149,13 +149,13 @@ public class DigestUtilsTest {
* An MD5 hash converted to hex should always be 32 characters.
*/
@Test
- public void testMd5HexLengthForBytes() {
+ public void testMd5HexLengthForByteBuffer() {
String hashMe = "this is some string that is longer than 32
characters";
- String hash = DigestUtils.md5Hex(getBytesUtf8(hashMe));
+ String hash = DigestUtils.md5Hex(getByteBufferUtf8(hashMe));
assertEquals(32, hash.length());
hashMe = "length < 32";
- hash = DigestUtils.md5Hex(getBytesUtf8(hashMe));
+ hash = DigestUtils.md5Hex(getByteBufferUtf8(hashMe));
assertEquals(32, hash.length());
}
@@ -163,13 +163,13 @@ public class DigestUtilsTest {
* An MD5 hash converted to hex should always be 32 characters.
*/
@Test
- public void testMd5HexLengthForByteBuffer() {
+ public void testMd5HexLengthForBytes() {
String hashMe = "this is some string that is longer than 32
characters";
- String hash = DigestUtils.md5Hex(getByteBufferUtf8(hashMe));
+ String hash = DigestUtils.md5Hex(getBytesUtf8(hashMe));
assertEquals(32, hash.length());
hashMe = "length < 32";
- hash = DigestUtils.md5Hex(getByteBufferUtf8(hashMe));
+ hash = DigestUtils.md5Hex(getBytesUtf8(hashMe));
assertEquals(32, hash.length());
}
@@ -177,13 +177,13 @@ public class DigestUtilsTest {
* An MD5 hash should always be a 16 element byte[].
*/
@Test
- public void testMd5LengthForBytes() {
+ public void testMd5LengthForByteBuffer() {
String hashMe = "this is some string that is longer than 16
characters";
- byte[] hash = DigestUtils.md5(getBytesUtf8(hashMe));
+ byte[] hash = DigestUtils.md5(getByteBufferUtf8(hashMe));
assertEquals(16, hash.length);
hashMe = "length < 16";
- hash = DigestUtils.md5(getBytesUtf8(hashMe));
+ hash = DigestUtils.md5(getByteBufferUtf8(hashMe));
assertEquals(16, hash.length);
}
@@ -191,13 +191,13 @@ public class DigestUtilsTest {
* An MD5 hash should always be a 16 element byte[].
*/
@Test
- public void testMd5LengthForByteBuffer() {
+ public void testMd5LengthForBytes() {
String hashMe = "this is some string that is longer than 16
characters";
- byte[] hash = DigestUtils.md5(getByteBufferUtf8(hashMe));
+ byte[] hash = DigestUtils.md5(getBytesUtf8(hashMe));
assertEquals(16, hash.length);
hashMe = "length < 16";
- hash = DigestUtils.md5(getByteBufferUtf8(hashMe));
+ hash = DigestUtils.md5(getBytesUtf8(hashMe));
assertEquals(16, hash.length);
}