Skip to content

Commit 1543cb0

Browse files
committed
Update variable name
1 parent 6aad568 commit 1543cb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/httpserver/file/PathExaminer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public class PathExaminer {
1414

15-
public Path fullPathForRequestPath(Path root, String requestPathString) {
15+
public Path getFullPath(Path root, String requestPathString) {
1616
return root.resolve(requestPathString.substring(1));
1717
}
1818

src/test/java/httpserver/file/PathExaminerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void makesFullPathFromRootPathAndRequestPathString() throws Exception {
7373

7474
Path expected = Paths.get("tmp/serving-dir/example.txt");
7575
assertEquals(expected,
76-
pathExaminer.fullPathForRequestPath(root, requestPathString));
76+
pathExaminer.getFullPath(root, requestPathString));
7777
}
7878

7979
@Test
@@ -82,7 +82,7 @@ public void makesFullPathCorrectlyWhenRequestPathIsSlash() throws Exception {
8282

8383
Path expected = Paths.get("tmp/serving-dir");
8484
assertEquals(expected,
85-
pathExaminer.fullPathForRequestPath(root, requestPathString));
85+
pathExaminer.getFullPath(root, requestPathString));
8686
}
8787

8888
@Test

0 commit comments

Comments
 (0)