From a5ba4828718e39983de6c9a3a7e8e39e794ac0c7 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Thu, 30 Nov 2017 16:33:57 +0100 Subject: [PATCH] fix kiosk id test for germany --- .../services/youtube/YoutubeTreindingKioskInfoTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeTreindingKioskInfoTest.java b/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeTreindingKioskInfoTest.java index 152c9e863..569db0ae4 100644 --- a/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeTreindingKioskInfoTest.java +++ b/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeTreindingKioskInfoTest.java @@ -30,6 +30,7 @@ import org.schabi.newpipe.extractor.kiosk.KioskInfo; import static junit.framework.TestCase.assertEquals; import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; import static org.schabi.newpipe.extractor.ServiceList.YouTube; /** @@ -55,7 +56,8 @@ public class YoutubeTreindingKioskInfoTest { @Test public void getId() { - assertEquals(kioskInfo.getId(), "Trending"); + assertTrue(kioskInfo.getId().equals("Trending") + || kioskInfo.getId().equals("Trends")); } @Test