diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-23 11:27:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 11:27:55 +0100 |
commit | f6b45e7162ce3909cb2b04a4124e71aad22240c6 (patch) | |
tree | 9aa8a0b64b399c99da4e8d82ad4dae146a10564f /app/src/androidTest/java/de/test/antennapod/service | |
parent | f20ce1fc690788273bb779663a4f3211f47a0973 (diff) | |
download | AntennaPod-f6b45e7162ce3909cb2b04a4124e71aad22240c6.zip |
Rename FeedMedia methods to no longer have underscores (#7017)
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/service')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/service/download/HttpDownloaderTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/service/download/HttpDownloaderTest.java b/app/src/androidTest/java/de/test/antennapod/service/download/HttpDownloaderTest.java index 46800dd50..dcd27d3b4 100644 --- a/app/src/androidTest/java/de/test/antennapod/service/download/HttpDownloaderTest.java +++ b/app/src/androidTest/java/de/test/antennapod/service/download/HttpDownloaderTest.java @@ -67,7 +67,7 @@ public class HttpDownloaderTest { if (deleteExisting) { Log.d(TAG, "Deleting file: " + file.delete()); } - feedfile.setFile_url(fileUrl); + feedfile.setLocalFileUrl(fileUrl); return feedfile; } @@ -78,7 +78,7 @@ public class HttpDownloaderTest { private Downloader download(String url, String title, boolean expectedResult, boolean deleteExisting, String username, String password) { Feed feedFile = setupFeedFile(url, title, deleteExisting); - DownloadRequest request = new DownloadRequest(feedFile.getFile_url(), url, title, 0, Feed.FEEDFILETYPE_FEED, + DownloadRequest request = new DownloadRequest(feedFile.getLocalFileUrl(), url, title, 0, Feed.FEEDFILETYPE_FEED, username, password, null, false); Downloader downloader = new HttpDownloader(request); downloader.call(); @@ -86,7 +86,7 @@ public class HttpDownloaderTest { assertNotNull(status); assertEquals(expectedResult, status.isSuccessful()); // the file should not exist if the download has failed and deleteExisting was true - assertTrue(!deleteExisting || new File(feedFile.getFile_url()).exists() == expectedResult); + assertTrue(!deleteExisting || new File(feedFile.getLocalFileUrl()).exists() == expectedResult); return downloader; } @@ -114,8 +114,8 @@ public class HttpDownloaderTest { public void testCancel() { final String url = httpServer.getBaseUrl() + "/delay/3"; Feed feedFile = setupFeedFile(url, "delay", true); - final Downloader downloader = new HttpDownloader(new DownloadRequest(feedFile.getFile_url(), url, "delay", 0, - Feed.FEEDFILETYPE_FEED, null, null, null, false)); + final Downloader downloader = new HttpDownloader(new DownloadRequest(feedFile.getLocalFileUrl(), + url, "delay", 0, Feed.FEEDFILETYPE_FEED, null, null, null, false)); Thread t = new Thread() { @Override public void run() { |