From 4835cd426c5b9b40d77ec7215704ce97d542bd8c Mon Sep 17 00:00:00 2001 From: Stuart Boston Date: Tue, 3 Mar 2015 11:52:58 +0000 Subject: [PATCH] Fixed Find TV test --- .../com/omertron/themoviedbapi/methods/TmdbFindTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/omertron/themoviedbapi/methods/TmdbFindTest.java b/src/test/java/com/omertron/themoviedbapi/methods/TmdbFindTest.java index 2c9d78b50..585cba543 100644 --- a/src/test/java/com/omertron/themoviedbapi/methods/TmdbFindTest.java +++ b/src/test/java/com/omertron/themoviedbapi/methods/TmdbFindTest.java @@ -26,6 +26,7 @@ import com.omertron.themoviedbapi.enumeration.ExternalSource; import com.omertron.themoviedbapi.model2.FindResults; import com.omertron.themoviedbapi.model2.movie.MovieBasic; import com.omertron.themoviedbapi.model2.person.PersonFind; +import com.omertron.themoviedbapi.model2.tv.TVBasic; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -143,10 +144,10 @@ public class TmdbFindTest extends AbstractTests { for (TestID test : TV_IDS) { result = instance.find(test.getImdb(), ExternalSource.IMDB_ID, LANGUAGE_DEFAULT); - assertFalse("No TV Show for ID: " + test.getName(), result.getPersonResults().isEmpty()); + assertFalse("No TV Show info for ID: " + test.getName(), result.getTvResults().isEmpty()); boolean found = false; - for (PersonFind p : result.getPersonResults()) { - if (p.getId() == test.getTmdb()) { + for (TVBasic tv : result.getTvResults()) { + if (tv.getId() == test.getTmdb()) { found = true; break; }