fixed faling searchengine unittest

This commit is contained in:
Christian Schabesberger 2016-02-24 22:36:16 +01:00
parent f54d8d318a
commit 11d3aeb0dd
2 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase {
super.setUp();
SearchEngine engine = new YoutubeSearchEngine();
result = engine.search("https://www.youtube.com/results?search_query=bla",
result = engine.search("bla",
0, "de", new Downloader());
suggestionReply = engine.suggestionList("hello","de",new Downloader());
}

View File

@ -246,6 +246,9 @@ public class YoutubeSearchEngine implements SearchEngine {
.replace(".", "")
.replace(",", "");
if(Long.parseLong(output) == 30) {
Log.d(TAG, "bla");
}
return Long.parseLong(output);
}