1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 11:02:35 +01:00

slightly improved YoutubeSearchEngineTest

This commit is contained in:
Christian Schabesberger 2015-12-29 21:41:10 +01:00
parent 7cfdca7a81
commit cd3f405bff

View File

@ -53,14 +53,15 @@ public class YoutubeSearchEngineTest extends AndroidTestCase {
}
public void testItemHasRightDuration() {
assertEquals(result.resultList.get(0).duration.contains(":"), true);
}
assertTrue(result.resultList.get(0).webpage_url,
result.resultList.get(0).webpage_url.contains(":")); }
public void testItemHasRightThumbnail() {
assertEquals(result.resultList.get(0).thumbnail_url.contains("https://"), true);
}
assertTrue(result.resultList.get(0).webpage_url,
result.resultList.get(0).webpage_url.contains("https://")); }
public void testItemHasRightVideoUrl() {
assertEquals(result.resultList.get(0).webpage_url.contains("https://"), true);
assertTrue(result.resultList.get(0).webpage_url,
result.resultList.get(0).webpage_url.contains("https://"));
}
}