made duration an integer, and made youtubesearch engine throw more parsingexceptions
This commit is contained in:
parent
3aecd15916
commit
68b7d9cdff
8 changed files with 164 additions and 34 deletions
|
|
@ -68,7 +68,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase {
|
|||
|
||||
public void testItemsHaveRightDuration() {
|
||||
for(StreamPreviewInfo i : result.resultList) {
|
||||
assertTrue(i.duration, i.duration.contains(":"));
|
||||
assertTrue(i.duration >= 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue