BREAKING CHANGE: pictures are now stored in getExternalFilesDir(); no migration takes place!

This commit is contained in:
Dennis Guse
2019-12-29 01:30:03 +01:00
parent a230504925
commit f3a308e669
10 changed files with 26 additions and 104 deletions
@@ -15,8 +15,6 @@
*/
package de.dennisguse.opentracks.util;
import android.os.Environment;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -32,16 +30,6 @@ import java.io.File;
@RunWith(JUnit4.class)
public class FileUtilsTest {
/**
* Tests {@link FileUtils#getPath(String...)}.
*/
@Test
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.getPath("a", "b", "c");
Assert.assertEquals(expectedName, dirName);
}
/**
* Tests {@link FileUtils#buildUniqueFileName(File, String, String)} when the file is new.
*/