diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-24 17:57:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 17:57:00 +0100 |
commit | 084b9c231744a5657a620087b4b560db38b66ab8 (patch) | |
tree | f02efc603867831c7dc89e0db969cdf561904e5c /app/src/androidTest | |
parent | 5218e06904e489f77da4078de775dd0a63b94ef4 (diff) | |
download | AntennaPod-084b9c231744a5657a620087b4b560db38b66ab8.zip |
Store last refresh attempt for feeds (#7022)
Diffstat (limited to 'app/src/androidTest')
3 files changed, 5 insertions, 4 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java index e8436a3a2..41e8c64d1 100644 --- a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java @@ -128,7 +128,8 @@ public class PlaybackServiceMediaPlayerTest { } private Playable writeTestPlayable(String downloadUrl, String fileUrl) { - Feed f = new Feed(0, null, "f", "l", "d", null, null, null, null, "i", null, null, "l", false); + Feed f = new Feed(0, null, "f", "l", "d", null, null, null, null, + "i", null, null, "l", System.currentTimeMillis()); FeedPreferences prefs = new FeedPreferences(f.getId(), false, FeedPreferences.AutoDeleteAction.NEVER, VolumeAdaptionSetting.OFF, FeedPreferences.NewEpisodesAction.NOTHING, null, null); f.setPreferences(prefs); diff --git a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java index 9f1fc2261..ea484faca 100644 --- a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java @@ -63,7 +63,8 @@ public class PlaybackServiceTaskManagerTest { private List<FeedItem> writeTestQueue(String pref) { final int NUM_ITEMS = 10; - Feed f = new Feed(0, null, "title", "link", "d", null, null, null, null, "id", null, "null", "url", false); + Feed f = new Feed(0, null, "title", "link", "d", null, null, null, null, "id", + null, "null", "url", System.currentTimeMillis()); f.setItems(new ArrayList<>()); for (int i = 0; i < NUM_ITEMS; i++) { f.getItems().add(new FeedItem(0, pref + i, pref + i, "link", new Date(), FeedItem.PLAYED, f)); diff --git a/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java b/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java index 0202d9d48..979d527f6 100644 --- a/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java +++ b/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java @@ -123,7 +123,7 @@ public class UITestUtils { for (int i = 0; i < NUM_FEEDS; i++) { Feed feed = new Feed(0, null, "Title " + i, "http://example.com/" + i, "Description of feed " + i, "http://example.com/pay/feed" + i, "author " + i, "en", Feed.TYPE_RSS2, "feed" + i, null, null, - "http://example.com/feed/src/" + i, false); + "http://example.com/feed/src/" + i, System.currentTimeMillis()); // create items List<FeedItem> items = new ArrayList<>(); @@ -169,7 +169,6 @@ public class UITestUtils { List<FeedItem> queue = new ArrayList<>(); for (Feed feed : hostedFeeds) { - feed.setDownloaded(true); if (downloadEpisodes) { for (FeedItem item : feed.getItems()) { if (item.hasMedia()) { |