summaryrefslogtreecommitdiff
path: root/core/src/test/java
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2023-03-06 21:41:05 +0100
committerGitHub <noreply@github.com>2023-03-06 21:41:05 +0100
commit95b97b6f49e96c659c2ef09a81c93b040a99f888 (patch)
treeced326dc7d38d40f8d6bd5cd0a2af6322cf0ce94 /core/src/test/java
parent24d1a06662c8eec31f3a4c3ebdcd3aea759fb63a (diff)
downloadAntennaPod-95b97b6f49e96c659c2ef09a81c93b040a99f888.zip
Warn when local folder is empty instead of silently ignoring (#6366)
Diffstat (limited to 'core/src/test/java')
-rw-r--r--core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java b/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java
index a04884cac..7c877103f 100644
--- a/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java
+++ b/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java
@@ -26,6 +26,7 @@ import org.robolectric.RobolectricTestRunner;
import org.robolectric.shadows.ShadowMediaMetadataRetriever;
import java.io.File;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -262,7 +263,11 @@ public class LocalFeedUpdaterTest {
// call method to test
Feed feed = new Feed(FEED_URL, null);
- LocalFeedUpdater.tryUpdateFeed(feed, context, null, null);
+ try {
+ LocalFeedUpdater.tryUpdateFeed(feed, context, null, null);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
}
}