Uncomment tests

This commit is contained in:
Stuart Boston
2015-03-04 15:44:08 +00:00
parent 2c9f671345
commit ffdeb4c1b8
6 changed files with 20 additions and 25 deletions
@@ -90,9 +90,7 @@ public class TmdbKeywords extends AbstractMethod {
URL url = new ApiUrl(apiKey, MethodBase.KEYWORD).subMethod(MethodSub.MOVIES).buildUrl(parameters);
WrapperGenericList<MovieBasic> wrapper = processWrapper(getTypeReference(MovieBasic.class), url, "keyword movies");
TmdbResultsList<MovieBasic> results = new TmdbResultsList<MovieBasic>(wrapper.getResults());
results.copyWrapper(wrapper);
return results;
return wrapper.getTmdbResultsList();
}
}
@@ -78,7 +78,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testGetAccount() throws MovieDbException {
LOG.info("getAccount");
Account result = instance.getAccount(getSessionId());
@@ -92,7 +92,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testGetUserLists() throws MovieDbException {
LOG.info("getUserLists");
List<UserList> results = instance.getUserLists(getSessionId(), getAccountId());
@@ -108,7 +108,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testGetFavoriteMovies() throws MovieDbException {
LOG.info("getFavoriteMovies");
List<MovieBasic> results = instance.getFavoriteMovies(getSessionId(), getAccountId());
@@ -124,7 +124,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testGetFavoriteTv() throws MovieDbException {
LOG.info("getFavoriteTv");
List<TVBasic> results = instance.getFavoriteTv(getSessionId(), getAccountId());
@@ -140,7 +140,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testModifyFavoriteStatus() throws MovieDbException {
LOG.info("modifyFavoriteStatus");
@@ -170,7 +170,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testGetRatedMovies() throws MovieDbException {
LOG.info("getRatedMovies");
List<MovieBasic> results = instance.getRatedMovies(getSessionId(), getAccountId(), null, null, null);
@@ -183,7 +183,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testGetRatedTV() throws MovieDbException {
LOG.info("getRatedTV");
List<TVBasic> results = instance.getRatedTV(getSessionId(), getAccountId(), null, null, null);
@@ -199,7 +199,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testGetWatchListMovie() throws MovieDbException {
LOG.info("getWatchListMovie");
List<MovieBasic> results = instance.getWatchListMovie(getSessionId(), getAccountId(), null, null, null);
@@ -215,7 +215,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testGetWatchListTV() throws MovieDbException {
LOG.info("getWatchListTV");
List<TVBasic> results = instance.getWatchListTV(getSessionId(), getAccountId(), null, null, null);
@@ -231,7 +231,7 @@ public class TmdbAccountTest extends AbstractTests {
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
//@Test
@Test
public void testModifyWatchList() throws MovieDbException {
LOG.info("modifyWatchList");
@@ -36,7 +36,6 @@ import org.junit.Test;
*/
public class TmdbChangesTest extends AbstractTests {
// API
private static TmdbChanges instance;
public TmdbChangesTest() {
@@ -38,7 +38,6 @@ import org.junit.Test;
*/
public class TmdbReviewsTest extends AbstractTests {
// API
private static TmdbReviews instance;
public TmdbReviewsTest() {
@@ -22,11 +22,11 @@ package com.omertron.themoviedbapi.methods;
import com.omertron.themoviedbapi.AbstractTests;
import com.omertron.themoviedbapi.MovieDbException;
import com.omertron.themoviedbapi.enumeration.SearchType;
import com.omertron.themoviedbapi.model.media.MediaBasic;
import com.omertron.themoviedbapi.model.keyword.Keyword;
import com.omertron.themoviedbapi.model.collection.Collection;
import com.omertron.themoviedbapi.model.company.Company;
import com.omertron.themoviedbapi.model.keyword.Keyword;
import com.omertron.themoviedbapi.model.list.UserList;
import com.omertron.themoviedbapi.model.media.MediaBasic;
import com.omertron.themoviedbapi.model.movie.MovieDb;
import com.omertron.themoviedbapi.model.person.PersonFind;
import com.omertron.themoviedbapi.model.tv.TVBasic;
@@ -75,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);
@@ -89,7 +89,7 @@ public class TmdbSearchTest extends AbstractTests {
*
* @throws MovieDbException
*/
// @Test
@Test
public void testSearchCollection() throws MovieDbException {
LOG.info("searchCollection");
String query = "batman";
@@ -105,7 +105,7 @@ public class TmdbSearchTest extends AbstractTests {
*
* @throws MovieDbException
*/
// @Test
@Test
public void testSearchKeyword() throws MovieDbException {
LOG.info("searchKeyword");
String query = "action";
@@ -121,7 +121,7 @@ public class TmdbSearchTest extends AbstractTests {
*
* @throws MovieDbException
*/
// @Test
@Test
public void testSearchList() throws MovieDbException {
LOG.info("searchList");
String query = "watch";
@@ -137,7 +137,7 @@ public class TmdbSearchTest extends AbstractTests {
*
* @throws MovieDbException
*/
// @Test
@Test
public void testSearchMovie() throws MovieDbException {
LOG.info("searchMovie");
@@ -177,7 +177,7 @@ public class TmdbSearchTest extends AbstractTests {
*
* @throws MovieDbException
*/
// @Test
@Test
public void testSearchPeople() throws MovieDbException {
LOG.info("searchPeople");
String personName = "Bruce Willis";
@@ -192,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";
@@ -32,7 +32,6 @@ import org.junit.BeforeClass;
*/
public class TmdbTVTest extends AbstractTests {
// API
private static TmdbTV instance;
// IDs
private static final int ID_BIG_BANG_THEORY = 1418;