fixed Search

master
Stuart Boston 11 years ago
parent 173792dc2e
commit e118f56f99

@ -24,7 +24,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.omertron.themoviedbapi.MovieDbException; import com.omertron.themoviedbapi.MovieDbException;
import com.omertron.themoviedbapi.model.MovieDb; import com.omertron.themoviedbapi.model.MovieDb;
import com.omertron.themoviedbapi.model2.keyword.Keyword; import com.omertron.themoviedbapi.model2.keyword.Keyword;
import com.omertron.themoviedbapi.model.person.Person; import com.omertron.themoviedbapi.model2.person.Person;
import com.omertron.themoviedbapi.model2.collection.Collection; import com.omertron.themoviedbapi.model2.collection.Collection;
import com.omertron.themoviedbapi.model2.company.Company; import com.omertron.themoviedbapi.model2.company.Company;
import com.omertron.themoviedbapi.model2.list.UserList; import com.omertron.themoviedbapi.model2.list.UserList;
@ -79,7 +79,11 @@ public class AbstractMethod {
} }
protected static TypeReference getTypeReference(Class aClass) { protected static TypeReference getTypeReference(Class aClass) {
return TYPE_REFS.get(aClass); if (TYPE_REFS.containsKey(aClass)) {
return TYPE_REFS.get(aClass);
} else {
throw new RuntimeException("Class type reference for '" + aClass.getSimpleName() + "' not found!");
}
} }
/** /**

@ -47,7 +47,6 @@ import org.junit.Test;
*/ */
public class TmdbSearchTest extends AbstractTests { public class TmdbSearchTest extends AbstractTests {
// API
private static TmdbSearch instance; private static TmdbSearch instance;
private static final String COMPANY_NAME = "Marvel Studios"; private static final String COMPANY_NAME = "Marvel Studios";

Loading…
Cancel
Save