示例#1
0
 @Test
 public void testFileNameWithoutExtention() {
   System.out.println("fileNameWithoutExtention");
   File srcImg = new File(testDir + "20110116/frame0001.jpg");
   String expResult = "frame0001";
   String result = IOUtils.fileNameWithoutExtention(srcImg);
   assertEquals(expResult, result);
 }
示例#2
0
 @Test
 public void testFileNameWithoutExtention_File() {
   System.out.println("testFileNameWithoutExtention_File");
   File file = new File("/temp1.jpgs");
   String expected = "temp1";
   String result = IOUtils.fileNameWithoutExtention(file);
   assertEquals(expected, result);
 }