FileNameUtil { public static String createFileNameWitoutExtension(String fileNameCandidate) { if (fileNameCandidate != null) { return FileNameUtil.createFileName(FileUtils.replaceExtension(fileNameCandidate, ""), null); } return null; }  static String createFileName(String baseName, String defaultExtension); static String createFileNameWitoutExtension(String fileNameCandidate); static String getWithoutWildcard(String path); static String fixPath(String filePath); static String getCanonicalPath(File zipRelPath); static String makePathRelative(String relativeToPath, File srcFile);  }
@Test public void createFileNameWitoutExtension() { Assert.assertEquals("file", FileNameUtil.createFileNameWitoutExtension("file.old")); }