File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/httpserver/file
test/java/httpserver/file Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212
1313public 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments