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 /core/src/test/java/de/danoeh | |
parent | f20ce1fc690788273bb779663a4f3211f47a0973 (diff) | |
download | AntennaPod-f6b45e7162ce3909cb2b04a4124e71aad22240c6.zip |
Rename FeedMedia methods to no longer have underscores (#7017)
Diffstat (limited to 'core/src/test/java/de/danoeh')
5 files changed, 11 insertions, 11 deletions
diff --git a/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java b/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java index 7c877103f..d23ec8286 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java @@ -112,7 +112,7 @@ public class LocalFeedUpdaterTest { // verify new feed in database verifySingleFeedInDatabaseAndItemCount(2); Feed feedAfter = verifySingleFeedInDatabase(); - assertEquals(FEED_URL, feedAfter.getDownload_url()); + assertEquals(FEED_URL, feedAfter.getDownloadUrl()); } /** diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/DbCleanupTests.java b/core/src/test/java/de/danoeh/antennapod/core/storage/DbCleanupTests.java index 6e6f457dc..0369ad3b1 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/storage/DbCleanupTests.java +++ b/core/src/test/java/de/danoeh/antennapod/core/storage/DbCleanupTests.java @@ -211,7 +211,7 @@ public class DbCleanupTests { FeedMedia m = feeds.get(0).getItems().get(0).getMedia(); //noinspection ConstantConditions m.setDownloaded(true); - m.setFile_url("file"); + m.setLocalFileUrl("file"); PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); adapter.setMedia(m); diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java b/core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java index e045012a6..6195ef714 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java @@ -112,7 +112,7 @@ public class DbReaderTest { assertNotNull(urls); assertEquals(feeds.size(), urls.size()); for (int i = 0; i < urls.size(); i++) { - assertEquals(urls.get(i), feeds.get(i).getDownload_url()); + assertEquals(urls.get(i), feeds.get(i).getDownloadUrl()); } } @@ -225,7 +225,7 @@ public class DbReaderTest { if (!downloaded.contains(items.get(i))) { FeedItem item = items.get(i); item.getMedia().setDownloaded(true); - item.getMedia().setFile_url("file" + i); + item.getMedia().setLocalFileUrl("file" + i); downloaded.add(item); } } @@ -247,7 +247,7 @@ public class DbReaderTest { for (FeedItem item : downloadedSaved) { assertNotNull(item.getMedia()); assertTrue(item.getMedia().isDownloaded()); - assertNotNull(item.getMedia().getDownload_url()); + assertNotNull(item.getMedia().getDownloadUrl()); } } @@ -434,7 +434,7 @@ public class DbReaderTest { List<Feed> feeds = saveFeedlist(1, 1, true); FeedItem item1 = feeds.get(0).getItems().get(0); FeedItem feedItemByEpisodeUrl = DBReader.getFeedItemByGuidOrEpisodeUrl(null, - item1.getMedia().getDownload_url()); + item1.getMedia().getDownloadUrl()); assertEquals(item1.getItemIdentifier(), feedItemByEpisodeUrl.getItemIdentifier()); } @@ -444,7 +444,7 @@ public class DbReaderTest { FeedItem item1 = feeds.get(0).getItems().get(0); FeedItem feedItemByGuid = DBReader.getFeedItemByGuidOrEpisodeUrl(item1.getItemIdentifier(), - item1.getMedia().getDownload_url()); + item1.getMedia().getDownloadUrl()); assertEquals(item1.getItemIdentifier(), feedItemByGuid.getItemIdentifier()); } diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/DbWriterTest.java b/core/src/test/java/de/danoeh/antennapod/core/storage/DbWriterTest.java index fb7cad252..cfcff56d8 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/storage/DbWriterTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/storage/DbWriterTest.java @@ -157,7 +157,7 @@ public class DbWriterTest { assertNotNull(media); assertFalse(dest.exists()); assertFalse(media.isDownloaded()); - assertNull(media.getFile_url()); + assertNull(media.getLocalFileUrl()); } @Test @@ -197,7 +197,7 @@ public class DbWriterTest { assertNotNull(media); assertFalse(dest.exists()); assertFalse(media.isDownloaded()); - assertNull(media.getFile_url()); + assertNull(media.getLocalFileUrl()); Awaitility.await().timeout(2, TimeUnit.SECONDS).until(() -> DBReader.getQueue().isEmpty()); } diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/mapper/FeedCursorMapperTest.java b/core/src/test/java/de/danoeh/antennapod/core/storage/mapper/FeedCursorMapperTest.java index f41762672..24f65744e 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/storage/mapper/FeedCursorMapperTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/storage/mapper/FeedCursorMapperTest.java @@ -53,8 +53,8 @@ public class FeedCursorMapperTest { assertEquals("feed author", feed.getAuthor()); assertEquals("feed language", feed.getLanguage()); assertEquals("feed image url", feed.getImageUrl()); - assertEquals("feed file url", feed.getFile_url()); - assertEquals("feed download url", feed.getDownload_url()); + assertEquals("feed file url", feed.getLocalFileUrl()); + assertEquals("feed download url", feed.getDownloadUrl()); assertTrue(feed.isDownloaded()); assertEquals("feed last update", feed.getLastModified()); assertEquals("feed type", feed.getType()); |