Ejemplo n.º 1
0
 public void testDownloadName3() {
   String test = "hello(1)";
   String correct = "hello";
   assertEquals(correct, FileNames.getRemovedLastDownloadNumbers(test));
 }
Ejemplo n.º 2
0
 public void testDirectory4() {
   String base = "/base/testhello.html";
   String collect = "/base/";
   assertEquals(collect, FileNames.as(FileNames.SLASH).getDirectoryPath(base, true));
 }
Ejemplo n.º 3
0
 public void testExtension1() {
   String base = "test.jpg";
   String collect = "jpg";
   assertEquals(collect, FileNames.getExtension(base));
 }
Ejemplo n.º 4
0
 public void testIndexPath3() {
   String base = "/base/test";
   String collect = "/base/test/index.html";
   assertEquals(collect, FileNames.as(FileNames.SLASH).getIndexedPath(base, "index.html"));
 }
Ejemplo n.º 5
0
 public void testChangedExtension2() {
   String base = "test";
   String collect = "test";
   assertEquals(collect, FileNames.as(FileNames.SLASH).getChangedExtensionName(base, "gif"));
 }
Ejemplo n.º 6
0
 public void testRemovedExtension2() {
   String base = "test";
   String collect = "test";
   assertEquals(collect, FileNames.getRemovedExtensionName(base));
 }