slightly improved YoutubeSearchEngineTest

This commit is contained in:
Christian Schabesberger 2015-12-29 21:41:10 +01:00
parent 7cfdca7a81
commit cd3f405bff
1 changed files with 6 additions and 5 deletions

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://"));
}
}