diff options
author | orionlee <orionlee@yahoo.com> | 2019-10-26 13:05:43 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-11-06 13:54:20 -0800 |
commit | fe33821e68bb8a19ec574955ff2ed723d143d96f (patch) | |
tree | 93eb64e57201e0be67cb8d3cc98f7d9cd5339a95 /app/src/androidTest/java/de/test/antennapod/service/download | |
parent | 43be061a644440a7210ea92f3268a0bc604047d3 (diff) | |
download | AntennaPod-fe33821e68bb8a19ec574955ff2ed723d143d96f.zip |
Refactor downloadMedia() : move entry points to DownloadRequester (from DBTasks)
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/service/download')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/service/download/DownloadServiceTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/service/download/DownloadServiceTest.java b/app/src/androidTest/java/de/test/antennapod/service/download/DownloadServiceTest.java index 3b5b35946..af87ce8f4 100644 --- a/app/src/androidTest/java/de/test/antennapod/service/download/DownloadServiceTest.java +++ b/app/src/androidTest/java/de/test/antennapod/service/download/DownloadServiceTest.java @@ -93,9 +93,8 @@ public class DownloadServiceTest { assertFalse("The media in test should not yet been downloaded", DBReader.getFeedMedia(testMedia11.getId()).isDownloaded()); - DownloadRequester.getInstance().downloadMedia(InstrumentationRegistry.getTargetContext(), - testMedia11); - Awaitility.await() + DownloadRequester.getInstance().downloadMedia(false, InstrumentationRegistry.getTargetContext(), + testMedia11.getItem());Awaitility.await() .atMost(1000, TimeUnit.MILLISECONDS) .until(() -> feedItemEventListener.getEvents().size() > 0); assertTrue("After media download has completed, FeedMedia object in db should indicate so.", |