summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java/de/test/antennapod/playback
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-01-22 11:27:51 +0100
committerByteHamster <info@bytehamster.com>2021-01-22 15:09:43 +0100
commitf610ceffc2a257d5e43e5b1d728284fc2800c42c (patch)
tree765462b7aa08299201c5be6eb5ae41420b658be4 /app/src/androidTest/java/de/test/antennapod/playback
parentcdf59a1c8e99720fd737fcbcc1f5ac1eb5252890 (diff)
downloadAntennaPod-f610ceffc2a257d5e43e5b1d728284fc2800c42c.zip
Split up filter model and database handling
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/playback')
-rw-r--r--app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java b/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java
index 419cf2096..f3bd61839 100644
--- a/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java
+++ b/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java
@@ -10,6 +10,7 @@ import androidx.test.filters.LargeTest;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.rule.ActivityTestRule;
+import de.danoeh.antennapod.core.feed.FeedItemFilter;
import org.awaitility.Awaitility;
import org.hamcrest.Matcher;
import org.junit.After;
@@ -252,7 +253,7 @@ public class PlaybackTest {
onView(isRoot()).perform(waitForView(withText(R.string.all_episodes_short_label), 1000));
onView(withText(R.string.all_episodes_short_label)).perform(click());
- final List<FeedItem> episodes = DBReader.getRecentlyPublishedEpisodes(0, 10);
+ final List<FeedItem> episodes = DBReader.getRecentlyPublishedEpisodes(0, 10, FeedItemFilter.unfiltered());
Matcher<View> allEpisodesMatcher = allOf(withId(android.R.id.list), isDisplayed(), hasMinimumChildCount(2));
onView(isRoot()).perform(waitForView(allEpisodesMatcher, 1000));
onView(allEpisodesMatcher).perform(actionOnItemAtPosition(0, clickChildViewWithId(R.id.secondaryActionButton)));
@@ -287,7 +288,7 @@ public class PlaybackTest {
uiTestUtils.addLocalFeedData(true);
DBWriter.clearQueue().get();
activityTestRule.launchActivity(new Intent());
- final List<FeedItem> episodes = DBReader.getRecentlyPublishedEpisodes(0, 10);
+ final List<FeedItem> episodes = DBReader.getRecentlyPublishedEpisodes(0, 10, FeedItemFilter.unfiltered());
startLocalPlayback();
FeedMedia media = episodes.get(0).getMedia();