FileUtil { public static boolean createFile(String path) throws IOException { return createFile(path, false); }  static File toFile(URL url); static boolean exist(String path); static boolean exist(File file); static boolean exist(String directory, String regexp); static boolean isDirectory(String path); static boolean isDirectory(File file); static boolean isFile(String path); static boolean isFile(File file); static File[] listDirSuffixFiles(File dir, final String suffix); static File[] listDirSuffixFiles(String dirPath, final String suffix); static File[] listDirAllConditionFiles(File dir, final boolean...conditions); static File[] listDirAllConditionFiles(String dirPath, final boolean...conditions); static File[] listDirAnyConditionFiles(File dir, final boolean...conditions); static File[] listDirAnyConditionFiles(String dirPath, final boolean...conditions); static File file(String filename); static File file(File parent, String child); static byte[] readBytes(String file); static byte[] readBytes(File file); static int getFileSize(String fileName); static boolean createFile(String path); static boolean createFile(String path, boolean override); static boolean createDir(String path, boolean override); static boolean createDir(String path); static boolean createParentDir(String path); static boolean createParentDir(File file); static boolean createParentDir(String path, boolean override); static boolean createParentDir(File file, boolean override); static boolean delete(File file); static boolean delete(String path); static boolean deleteDir(File dir); static boolean deleteDir(String path); static Date lastModifiedTime(File file); static Date lastModifiedTime(String path); static String normalizeAbsolutePath(String path); static String normalizeAbsolutePath(String path, boolean removeTrailingSlash); static String normalizeWindowsPath(String path); static String normalizeUnixPath(String path); static String normalizeRelativePath(String path); static String normalizeRelativePath(String path, boolean removeTrailingSlash); static String normalizePath(String path); static String normalizePath(String path, boolean removeTrailingSlash); static String getAbsolutePathBasedOn(String basedir, String path); static String getSystemDependentAbsolutePathBasedOn(String basedir, String path); static String getRelativePath(String basedir, String path); static String getPathBasedOn(String basedir, String path); static String getWindowsPathBasedOn(String basedir, String path); static String getUnixPathBasedOn(String basedir, String path); static String getWindowsRelativePath(String basedir, String path); static String getUnixRelativePath(String basedir, String path); static String getExtension(String fileName); static String getExtension(String fileName, boolean toLowerCase); static String getExtension(String fileName, String nullExt); static String getExtension(String fileName, String nullExt, boolean toLowerCase); static FileNameAndExtension getFileNameAndExtension(String path); static FileNameAndExtension getFileNameAndExtension(String path, boolean extensionToLowerCase); static String normalizeExtension(String ext); static String getName(String filename); static int indexOfLastSeparator(String filename); static int indexOfExtension(String filename); static String[] parseExtension(String path); static String resolve(String url, String relativePath); static File getResourcesFile(String resourceName); static File getResourcesFile(URL url); static File createAndReturnFile(String filename); static File newFile(String pathName); static File createTempDirectory(String prefix, String suffix); static File createTempDirectory(String prefix, String suffix, String tempDirName); static File createTempDirectory(String prefix, String suffix, File tempDir); static File createTempFile(); static File createTempFile(boolean create); static File createTempFile(String prefix, String suffix); static File createTempFile(String prefix, String suffix, boolean create); static File createTempFile(String prefix, String suffix, String tempDirName); static File createTempFile(String prefix, String suffix, File tempDir); static File createTempFile(String prefix, String suffix, String tempDirName, boolean create); static File createTempFile(String prefix, String suffix, File tempDir, boolean create); static String getClassFilePath(Class<?> clazz); static final String CURRENT_DIR; static final String UP_LEVEL_DIR; }
@Test public void createFile() { }