Skip to content

Commit 485db15

Browse files
committed
Better test method names.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1637849 13f79535-47bb-0310-9956-ffa450edef68
1 parent d9be575 commit 485db15

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void testCustomCharsetToString() {
178178
}
179179

180180
@Test
181-
public void testDecodeArrayOddCharacters() {
181+
public void testDecodeByteArrayOddCharacters() {
182182
try {
183183
new Hex().decode(new byte[]{65});
184184
fail("An exception wasn't thrown when trying to decode an odd number of characters");
@@ -297,7 +297,7 @@ public void testEncodeDecodeRandom() throws DecoderException, EncoderException {
297297
}
298298

299299
@Test
300-
public void testEncodeHexBytesEmpty() throws EncoderException {
300+
public void testEncodeHexByteArrayEmpty() throws EncoderException {
301301
assertTrue(Arrays.equals(new char[0], Hex.encodeHex(new byte[0])));
302302
assertTrue(Arrays.equals(new byte[0], new Hex().encode(new byte[0])));
303303
}
@@ -308,13 +308,13 @@ public void testEncodeStringEmpty() throws EncoderException {
308308
}
309309

310310
@Test
311-
public void testEncodeHexBytesZeroes() {
311+
public void testEncodeHexByteArrayZeroes() {
312312
final char[] c = Hex.encodeHex(new byte[36]);
313313
assertEquals("000000000000000000000000000000000000000000000000000000000000000000000000", new String(c));
314314
}
315315

316316
@Test
317-
public void testEncodeHexBytesHelloWorldLowerCaseHex() {
317+
public void testEncodeHexByteArrayHelloWorldLowerCaseHex() {
318318
final byte[] b = StringUtils.getBytesUtf8("Hello World");
319319
final String expected = "48656c6c6f20576f726c64";
320320
char[] actual;
@@ -327,7 +327,7 @@ public void testEncodeHexBytesHelloWorldLowerCaseHex() {
327327
}
328328

329329
@Test
330-
public void testEncodeHexBytesHelloWorldUpperCaseHex() {
330+
public void testEncodeHexByteArrayHelloWorldUpperCaseHex() {
331331
final byte[] b = StringUtils.getBytesUtf8("Hello World");
332332
final String expected = "48656C6C6F20576F726C64";
333333
char[] actual;

0 commit comments

Comments
 (0)