@@ -149,55 +149,55 @@ public void testMd5Hex() throws IOException {
149149 * An MD5 hash converted to hex should always be 32 characters.
150150 */
151151 @ Test
152- public void testMd5HexLengthForBytes () {
152+ public void testMd5HexLengthForByteBuffer () {
153153 String hashMe = "this is some string that is longer than 32 characters" ;
154- String hash = DigestUtils .md5Hex (getBytesUtf8 (hashMe ));
154+ String hash = DigestUtils .md5Hex (getByteBufferUtf8 (hashMe ));
155155 assertEquals (32 , hash .length ());
156156
157157 hashMe = "length < 32" ;
158- hash = DigestUtils .md5Hex (getBytesUtf8 (hashMe ));
158+ hash = DigestUtils .md5Hex (getByteBufferUtf8 (hashMe ));
159159 assertEquals (32 , hash .length ());
160160 }
161161
162162 /**
163163 * An MD5 hash converted to hex should always be 32 characters.
164164 */
165165 @ Test
166- public void testMd5HexLengthForByteBuffer () {
166+ public void testMd5HexLengthForBytes () {
167167 String hashMe = "this is some string that is longer than 32 characters" ;
168- String hash = DigestUtils .md5Hex (getByteBufferUtf8 (hashMe ));
168+ String hash = DigestUtils .md5Hex (getBytesUtf8 (hashMe ));
169169 assertEquals (32 , hash .length ());
170170
171171 hashMe = "length < 32" ;
172- hash = DigestUtils .md5Hex (getByteBufferUtf8 (hashMe ));
172+ hash = DigestUtils .md5Hex (getBytesUtf8 (hashMe ));
173173 assertEquals (32 , hash .length ());
174174 }
175175
176176 /**
177177 * An MD5 hash should always be a 16 element byte[].
178178 */
179179 @ Test
180- public void testMd5LengthForBytes () {
180+ public void testMd5LengthForByteBuffer () {
181181 String hashMe = "this is some string that is longer than 16 characters" ;
182- byte [] hash = DigestUtils .md5 (getBytesUtf8 (hashMe ));
182+ byte [] hash = DigestUtils .md5 (getByteBufferUtf8 (hashMe ));
183183 assertEquals (16 , hash .length );
184184
185185 hashMe = "length < 16" ;
186- hash = DigestUtils .md5 (getBytesUtf8 (hashMe ));
186+ hash = DigestUtils .md5 (getByteBufferUtf8 (hashMe ));
187187 assertEquals (16 , hash .length );
188188 }
189189
190190 /**
191191 * An MD5 hash should always be a 16 element byte[].
192192 */
193193 @ Test
194- public void testMd5LengthForByteBuffer () {
194+ public void testMd5LengthForBytes () {
195195 String hashMe = "this is some string that is longer than 16 characters" ;
196- byte [] hash = DigestUtils .md5 (getByteBufferUtf8 (hashMe ));
196+ byte [] hash = DigestUtils .md5 (getBytesUtf8 (hashMe ));
197197 assertEquals (16 , hash .length );
198198
199199 hashMe = "length < 16" ;
200- hash = DigestUtils .md5 (getByteBufferUtf8 (hashMe ));
200+ hash = DigestUtils .md5 (getBytesUtf8 (hashMe ));
201201 assertEquals (16 , hash .length );
202202 }
203203
0 commit comments