forked from upstream-mirrors/OpenTracks
Codename: rename methods to FileUtils.getPath and FileUtils.getPathDisplayName
This commit is contained in:
@@ -29,13 +29,13 @@ import junit.framework.TestCase;
|
||||
public class FileUtilsTest extends TestCase {
|
||||
|
||||
/**
|
||||
* Tests {@link FileUtils#getDirectoryPath(String...)}.
|
||||
* Tests {@link FileUtils#getPath(String...)}.
|
||||
*/
|
||||
public void testBuildExternalDirectoryPath() {
|
||||
String expectedName = Environment.getExternalStorageDirectory() + File.separator
|
||||
+ FileUtils.SDCARD_TOP_DIR + File.separator + "a" + File.separator + "b" + File.separator
|
||||
+ "c";
|
||||
String dirName = FileUtils.getDirectoryPath("a", "b", "c");
|
||||
String dirName = FileUtils.getPath("a", "b", "c");
|
||||
assertEquals(expectedName, dirName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user