From 0c716c12d769cea04025abe0090462bea2c6cc4f Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Fri, 4 Mar 2016 13:51:50 +0100 Subject: [PATCH] fixed viewcount test again --- .../newpipe/extractor/youtube/YoutubeSearchEngineTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java b/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java index 07b1f27ad..39f04f4a0 100644 --- a/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java +++ b/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java @@ -43,7 +43,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase { SearchEngine engine = ServiceList.getService("Youtube") .getSearchEngineInstance(new Downloader()); - result = engine.search("bla", + result = engine.search("lefloid", 0, "de", new Downloader()).getSearchResult(); suggestionReply = engine.suggestionList("hello","de",new Downloader()); } @@ -96,7 +96,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase { // that specific link used for this test, there are no videos with less // than 10.000 views, so we can test against that. for(StreamPreviewInfo i : result.resultList) { - assertTrue(Long.toString(i.view_count), i.view_count >= 10000); + assertTrue(i.title + ": " + Long.toString(i.view_count), i.view_count >= 10000); } }