From e894ff1ccb279237be2ab04063d1f7505b30a86f Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Thu, 4 Apr 2024 21:25:57 +0200 Subject: Remove methods from DbReader that just call a private method (#7057) --- .../net/download/service/feed/local/LocalFeedUpdaterTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net/download/service') 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 feedItems = DBReader.getFeedItemList(feed); + List 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 feedItems = DBReader.getFeedItemList(feed); + List feedItems = DBReader.getFeedItemList(feed, FeedItemFilter.unfiltered(), SortOrder.DATE_NEW_OLD); assertEquals(expectedItemCount, feedItems.size()); } -- cgit v1.2.3