fixed faling searchengine unittest

pull/224/head
Christian Schabesberger 2016-02-24 22:36:16 +01:00
rodzic f54d8d318a
commit 11d3aeb0dd
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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());
}

Wyświetl plik

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