summaryrefslogtreecommitdiff
path: root/net/download
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-04-04 21:25:57 +0200
committerGitHub <noreply@github.com>2024-04-04 21:25:57 +0200
commite894ff1ccb279237be2ab04063d1f7505b30a86f (patch)
tree63c14bdaea7303e140062f16aaad3ac4e1f20828 /net/download
parent613a9896e91200c3d4e8744173e48c445003469f (diff)
downloadAntennaPod-e894ff1ccb279237be2ab04063d1f7505b30a86f.zip
Remove methods from DbReader that just call a private method (#7057)
Diffstat (limited to 'net/download')
-rw-r--r--net/download/service/src/test/java/de/danoeh/antennapod/net/download/service/feed/local/LocalFeedUpdaterTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/download/service/src/test/java/de/danoeh/antennapod/net/download/service/feed/local/LocalFeedUpdaterTest.java b/net/download/service/src/test/java/de/danoeh/antennapod/net/download/service/feed/local/LocalFeedUpdaterTest.java
index 484929136..4fb686ca5 100644
--- a/net/download/service/src/test/java/de/danoeh/antennapod/net/download/service/feed/local/LocalFeedUpdaterTest.java
+++ b/net/download/service/src/test/java/de/danoeh/antennapod/net/download/service/feed/local/LocalFeedUpdaterTest.java
@@ -8,6 +8,8 @@ import android.webkit.MimeTypeMap;
import androidx.annotation.NonNull;
import androidx.test.platform.app.InstrumentationRegistry;
+import de.danoeh.antennapod.model.feed.FeedItemFilter;
+import de.danoeh.antennapod.model.feed.SortOrder;
import de.danoeh.antennapod.storage.preferences.PlaybackPreferences;
import de.danoeh.antennapod.net.download.serviceinterface.DownloadServiceInterface;
import de.danoeh.antennapod.net.download.serviceinterface.DownloadServiceInterfaceStub;
@@ -167,7 +169,7 @@ public class LocalFeedUpdaterTest {
callUpdateFeed(LOCAL_FEED_DIR1);
Feed feed = verifySingleFeedInDatabase();
- List<FeedItem> feedItems = DBReader.getFeedItemList(feed);
+ List<FeedItem> feedItems = DBReader.getFeedItemList(feed, FeedItemFilter.unfiltered(), SortOrder.DATE_NEW_OLD);
assertEquals("track1.mp3", feedItems.get(0).getTitle());
}
@@ -281,7 +283,7 @@ public class LocalFeedUpdaterTest {
*/
private static void verifySingleFeedInDatabaseAndItemCount(int expectedItemCount) {
Feed feed = verifySingleFeedInDatabase();
- List<FeedItem> feedItems = DBReader.getFeedItemList(feed);
+ List<FeedItem> feedItems = DBReader.getFeedItemList(feed, FeedItemFilter.unfiltered(), SortOrder.DATE_NEW_OLD);
assertEquals(expectedItemCount, feedItems.size());
}