From f36fd2f7b273ccd9fa80b79f345507430520e9d8 Mon Sep 17 00:00:00 2001 From: Jhon Baron <32346414+Jhooomn@users.noreply.github.com> Date: Wed, 22 Sep 2021 02:17:53 -0500 Subject: [PATCH] Simple Codebase Improvement (#7132) * feat: it was added a string variable to avoid replication one. * Update LocalPlaylistManagerTest.kt * Update LocalPlaylistManagerTest.kt * Update LocalPlaylistManagerTest.kt Co-authored-by: Jhon Camilo Baron Berdugo --- .../newpipe/local/playlist/LocalPlaylistManagerTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/schabi/newpipe/local/playlist/LocalPlaylistManagerTest.kt b/app/src/androidTest/java/org/schabi/newpipe/local/playlist/LocalPlaylistManagerTest.kt index 24563d1c1..0a00b0443 100644 --- a/app/src/androidTest/java/org/schabi/newpipe/local/playlist/LocalPlaylistManagerTest.kt +++ b/app/src/androidTest/java/org/schabi/newpipe/local/playlist/LocalPlaylistManagerTest.kt @@ -43,10 +43,11 @@ class LocalPlaylistManagerTest { @Test fun createPlaylist() { + val NEWPIPE_URL = "https://newpipe.net/" val stream = StreamEntity( - serviceId = 1, url = "https://newpipe.net/", title = "title", + serviceId = 1, url = NEWPIPE_URL, title = "title", streamType = StreamType.VIDEO_STREAM, duration = 1, uploader = "uploader", - uploaderUrl = "https://newpipe.net/" + uploaderUrl = NEWPIPE_URL ) val result = manager.createPlaylist("name", listOf(stream))