fix kiosk id test for germany

This commit is contained in:
Christian Schabesberger 2017-11-30 16:33:57 +01:00
parent 18e486da30
commit a5ba482871

View File

@ -30,6 +30,7 @@ import org.schabi.newpipe.extractor.kiosk.KioskInfo;
import static junit.framework.TestCase.assertEquals; import static junit.framework.TestCase.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.schabi.newpipe.extractor.ServiceList.YouTube; import static org.schabi.newpipe.extractor.ServiceList.YouTube;
/** /**
@ -55,7 +56,8 @@ public class YoutubeTreindingKioskInfoTest {
@Test @Test
public void getId() { public void getId() {
assertEquals(kioskInfo.getId(), "Trending"); assertTrue(kioskInfo.getId().equals("Trending")
|| kioskInfo.getId().equals("Trends"));
} }
@Test @Test