slightly improved YoutubeSearchEngineTest
This commit is contained in:
parent
7cfdca7a81
commit
cd3f405bff
|
@ -53,14 +53,15 @@ public class YoutubeSearchEngineTest extends AndroidTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testItemHasRightDuration() {
|
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() {
|
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() {
|
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://"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue