Fixed Multi search
This commit is contained in:
@@ -23,6 +23,7 @@ import com.omertron.themoviedbapi.AbstractTests;
|
||||
import com.omertron.themoviedbapi.MovieDbException;
|
||||
import com.omertron.themoviedbapi.enumeration.SearchType;
|
||||
import com.omertron.themoviedbapi.model.MovieDb;
|
||||
import com.omertron.themoviedbapi.model2.MediaBasic;
|
||||
import com.omertron.themoviedbapi.model2.keyword.Keyword;
|
||||
import com.omertron.themoviedbapi.model2.collection.Collection;
|
||||
import com.omertron.themoviedbapi.model2.company.Company;
|
||||
@@ -32,11 +33,9 @@ import com.omertron.themoviedbapi.model2.tv.TVBasic;
|
||||
import com.omertron.themoviedbapi.results.TmdbResultsList;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
@@ -76,7 +75,7 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
*
|
||||
* @throws MovieDbException
|
||||
*/
|
||||
@Test
|
||||
// @Test
|
||||
public void testSearchCompanies() throws MovieDbException {
|
||||
LOG.info("searchCompanies");
|
||||
TmdbResultsList<Company> result = instance.searchCompanies(COMPANY_NAME, 0);
|
||||
@@ -90,7 +89,7 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
*
|
||||
* @throws MovieDbException
|
||||
*/
|
||||
@Test
|
||||
// @Test
|
||||
public void testSearchCollection() throws MovieDbException {
|
||||
LOG.info("searchCollection");
|
||||
String query = "batman";
|
||||
@@ -106,7 +105,7 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
*
|
||||
* @throws MovieDbException
|
||||
*/
|
||||
@Test
|
||||
// @Test
|
||||
public void testSearchKeyword() throws MovieDbException {
|
||||
LOG.info("searchKeyword");
|
||||
String query = "action";
|
||||
@@ -122,7 +121,7 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
*
|
||||
* @throws MovieDbException
|
||||
*/
|
||||
@Test
|
||||
// @Test
|
||||
public void testSearchList() throws MovieDbException {
|
||||
LOG.info("searchList");
|
||||
String query = "watch";
|
||||
@@ -138,7 +137,7 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
*
|
||||
* @throws MovieDbException
|
||||
*/
|
||||
@Test
|
||||
// @Test
|
||||
public void testSearchMovie() throws MovieDbException {
|
||||
LOG.info("searchMovie");
|
||||
|
||||
@@ -167,11 +166,10 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
Integer page = null;
|
||||
String language = "";
|
||||
Boolean includeAdult = null;
|
||||
String expResult = "";
|
||||
String result = instance.searchMulti(query, page, language, includeAdult);
|
||||
assertEquals(expResult, result);
|
||||
// TODO review the generated test code and remove the default call to fail.
|
||||
fail("The test case is a prototype.");
|
||||
TmdbResultsList<MediaBasic> result = instance.searchMulti(query, page, language, includeAdult);
|
||||
for (MediaBasic item : result.getResults()) {
|
||||
LOG.info("{}", item);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -179,7 +177,7 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
*
|
||||
* @throws MovieDbException
|
||||
*/
|
||||
@Test
|
||||
// @Test
|
||||
public void testSearchPeople() throws MovieDbException {
|
||||
LOG.info("searchPeople");
|
||||
String personName = "Bruce Willis";
|
||||
@@ -194,7 +192,7 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
*
|
||||
* @throws com.omertron.themoviedbapi.MovieDbException
|
||||
*/
|
||||
@Test
|
||||
// @Test
|
||||
public void testSearchTV() throws MovieDbException {
|
||||
System.out.println("searchTV");
|
||||
String query = "The Walking Dead";
|
||||
|
||||
Reference in New Issue
Block a user