예제 #1
0
 public void testIndexPath3() {
   String base = "/base/test";
   String collect = "/base/test/index.html";
   assertEquals(collect, FileNames.as(FileNames.SLASH).getIndexedPath(base, "index.html"));
 }
예제 #2
0
 public void testDirectory4() {
   String base = "/base/testhello.html";
   String collect = "/base/";
   assertEquals(collect, FileNames.as(FileNames.SLASH).getDirectoryPath(base, true));
 }
예제 #3
0
 public void testChangedExtension2() {
   String base = "test";
   String collect = "test";
   assertEquals(collect, FileNames.as(FileNames.SLASH).getChangedExtensionName(base, "gif"));
 }