diff options
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java | 8 |
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)); } /** |