@Test public void getTempDir_Linux() { final String input = "/tmp"; final File actual = LocalFileSystemUtils.getTempDir(input, "olivida"); final File expected = new File(input, "olivida").getAbsoluteFile(); Assert.assertEquals(expected, actual); }
public static File getTempDir() { final String tempDirectory = System.getProperty("java.io.tmpdir"); final String currentUserName = determineCurrentUserName(); final File result = getTempDir(tempDirectory, currentUserName); if (!result.isDirectory()) { result.mkdirs(); } return result; }
LocalFileSystemUtils { public static File getTempDir() { final String tempDirectory = System.getProperty("java.io.tmpdir"); final String currentUserName = determineCurrentUserName(); final File result = getTempDir(tempDirectory, currentUserName); if (!result.isDirectory()) { result.mkdirs(); } return result; } }
LocalFileSystemUtils { public static File getTempDir() { final String tempDirectory = System.getProperty("java.io.tmpdir"); final String currentUserName = determineCurrentUserName(); final File result = getTempDir(tempDirectory, currentUserName); if (!result.isDirectory()) { result.mkdirs(); } return result; }  }
LocalFileSystemUtils { public static File getTempDir() { final String tempDirectory = System.getProperty("java.io.tmpdir"); final String currentUserName = determineCurrentUserName(); final File result = getTempDir(tempDirectory, currentUserName); if (!result.isDirectory()) { result.mkdirs(); } return result; }  static File getTempDir(); static String determineCurrentUserName(); }
LocalFileSystemUtils { public static File getTempDir() { final String tempDirectory = System.getProperty("java.io.tmpdir"); final String currentUserName = determineCurrentUserName(); final File result = getTempDir(tempDirectory, currentUserName); if (!result.isDirectory()) { result.mkdirs(); } return result; }  static File getTempDir(); static String determineCurrentUserName();  }