Skip to content

Commit ef03808

Browse files
committed
Camel-case internal names
1 parent 2a4d302 commit ef03808

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ public void tearDown() throws IOException {
111111
@Test
112112
public void testDigestAs() throws IOException {
113113
final String expected = "d41d8cd98f00b204e9800998ecf8427e";
114-
final String pathname = "src/test/resources/org/apache/commons/codec/empty.bin";
114+
final String pathName = "src/test/resources/org/apache/commons/codec/empty.bin";
115115
final String algo = MessageDigestAlgorithms.MD5;
116-
assertEquals(expected, new DigestUtils(algo).digestAsHex(new File(pathname)));
117-
try (final FileInputStream inputStream = new FileInputStream(pathname)) {
116+
assertEquals(expected, new DigestUtils(algo).digestAsHex(new File(pathName)));
117+
try (final FileInputStream inputStream = new FileInputStream(pathName)) {
118118
assertEquals(expected, new DigestUtils(algo).digestAsHex(inputStream));
119119
}
120-
final byte[] allBytes = Files.readAllBytes(Paths.get(pathname));
120+
final byte[] allBytes = Files.readAllBytes(Paths.get(pathName));
121121
assertEquals(expected, new DigestUtils(algo).digestAsHex(allBytes));
122122
assertEquals(expected, new DigestUtils(algo).digestAsHex(ByteBuffer.wrap(allBytes)));
123123
}
@@ -319,14 +319,14 @@ public void testSha1UpdateWithString(){
319319
public void testSha224_FileAsHex() throws IOException {
320320
assumeJava8();
321321
final String expected = "d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f";
322-
final String pathname = "src/test/resources/org/apache/commons/codec/empty.bin";
322+
final String pathName = "src/test/resources/org/apache/commons/codec/empty.bin";
323323
final String algo = MessageDigestAlgorithms.SHA_224;
324324
final DigestUtils digestUtils = new DigestUtils(algo);
325-
assertEquals(expected, digestUtils.digestAsHex(new File(pathname)));
326-
try (final FileInputStream inputStream = new FileInputStream(pathname)) {
325+
assertEquals(expected, digestUtils.digestAsHex(new File(pathName)));
326+
try (final FileInputStream inputStream = new FileInputStream(pathName)) {
327327
assertEquals(expected, digestUtils.digestAsHex(inputStream));
328328
}
329-
final byte[] allBytes = Files.readAllBytes(Paths.get(pathname));
329+
final byte[] allBytes = Files.readAllBytes(Paths.get(pathName));
330330
assertEquals(expected, digestUtils.digestAsHex(allBytes));
331331
assertEquals(expected, digestUtils.digestAsHex(ByteBuffer.wrap(allBytes)));
332332
}

0 commit comments

Comments
 (0)