summaryrefslogtreecommitdiff
path: root/app/src/androidTest
diff options
context:
space:
mode:
authorMartin Fietz <martin.fietz@gmail.com>2018-01-02 20:42:34 +0100
committerMartin Fietz <martin.fietz@gmail.com>2018-01-02 20:42:34 +0100
commiteddc0a6a13bf70fd64266897a8f098f63b4d20a1 (patch)
tree805ede344e57523685a1ef85964e16e0dc0c919a /app/src/androidTest
parent717a1ec00ea140bd6ae2962449cffbc37e7d3725 (diff)
parentf9686ffba71ae0c569acca351a2385b3d04207b4 (diff)
downloadAntennaPod-eddc0a6a13bf70fd64266897a8f098f63b4d20a1.zip
Merge branch 'develop'
Diffstat (limited to 'app/src/androidTest')
-rw-r--r--app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java b/app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java
index 13e8b9582..cb2d012e0 100644
--- a/app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java
+++ b/app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java
@@ -5,6 +5,7 @@ import java.io.IOException;
import de.danoeh.antennapod.core.util.FileNameGenerator;
import android.test.AndroidTestCase;
+import android.text.TextUtils;
public class FilenameGeneratorTest extends AndroidTestCase {
@@ -41,7 +42,12 @@ public class FilenameGeneratorTest extends AndroidTestCase {
public void testFeedTitleContainsDash() {
String result = FileNameGenerator.generateFileName("Left - Right");
- assertEquals("Left Right", result);
+ assertEquals("Left - Right", result);
+ }
+
+ public void testInvalidInput() {
+ String result = FileNameGenerator.generateFileName("???");
+ assertTrue(!TextUtils.isEmpty(result));
}
/**