TV Season and Episode stub methods

This commit is contained in:
Stuart Boston
2015-03-05 12:04:26 +00:00
parent 60df7278d4
commit 29c8aa5deb
7 changed files with 804 additions and 18 deletions
@@ -0,0 +1,164 @@
/*
* Copyright (c) 2004-2015 Stuart Boston
*
* This file is part of TheMovieDB API.
*
* TheMovieDB API is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* TheMovieDB API is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
*
*/
package com.omertron.themoviedbapi.methods;
import com.omertron.themoviedbapi.MovieDbException;
import com.omertron.themoviedbapi.tools.HttpTools;
/**
* Class to hold the TV Methods
*
* @author stuart.boston
*/
public class TmdbTVEpisodes extends AbstractMethod {
private static final int RATING_MAX = 10;
/**
* Constructor
*
* @param apiKey
* @param httpTools
*/
public TmdbTVEpisodes(String apiKey, HttpTools httpTools) {
super(apiKey, httpTools);
}
/**
* Get the primary information about a TV episode by combination of a season
* and episode number.
*
* @param tvID
* @param seasonNumber
* @param episodeNumber
* @param language
* @param appendToResponse
* @return
* @throws MovieDbException
*/
public String getEpisodeInfo(int tvID, int seasonNumber, int episodeNumber, String language, String... appendToResponse) throws MovieDbException {
return null;
}
/**
* Look up a TV episode's changes by episode ID
*
* @param episodeID
* @param startDate
* @param endDate
* @return
* @throws MovieDbException
*/
public String getEpisodeChanges(int episodeID, String startDate, String endDate) throws MovieDbException {
return null;
}
/**
* This method lets users get the status of whether or not the TV episode
* has been rated.
*
* A valid session id is required.
*
* @param tvID
* @param seasonNumber
* @param episodeNumber
* @param sessionID
* @return
* @throws MovieDbException
*/
public String getEpisodeAccountState(int tvID, int seasonNumber, int episodeNumber, String sessionID) throws MovieDbException {
return null;
}
/**
* Get the TV episode credits by combination of season and episode number.
*
* @param tvID
* @param seasonNumber
* @param episodeNumber
* @return
* @throws MovieDbException
*/
public String getEpisodeCredits(int tvID, int seasonNumber, int episodeNumber) throws MovieDbException {
return null;
}
/**
* Get the external ids for a TV episode by comabination of a season and
* episode number.
*
* @param tvID
* @param seasonNumber
* @param episodeNumber
* @param language
* @return
* @throws MovieDbException
*/
public String getEpisodeExternalID(int tvID, int seasonNumber, int episodeNumber, String language) throws MovieDbException {
return null;
}
/**
* Get the images (episode stills) for a TV episode by combination of a
* season and episode number.
*
* @param tvID
* @param seasonNumber
* @param episodeNumber
* @return
* @throws MovieDbException
*/
public String getEpisodeImages(int tvID, int seasonNumber, int episodeNumber) throws MovieDbException {
return null;
}
/**
* This method lets users rate a TV episode. A valid session id or guest
* session id is required.
*
* @param tvID
* @param seasonNumber
* @param episodeNumber
* @param rating
* @param sessionID
* @param guestSessionID
* @return
* @throws MovieDbException
*/
public String postEpisodeRating(int tvID, int seasonNumber, int episodeNumber, int rating, String sessionID, String guestSessionID) throws MovieDbException {
return null;
}
/**
* Get the videos that have been added to a TV episode (teasers, clips,
* etc...)
*
* @param tvID
* @param seasonNumber
* @param episodeNumber
* @param language
* @return
* @throws MovieDbException
*/
public String getEpisodeVideos(int tvID, int seasonNumber, int episodeNumber, String language) throws MovieDbException {
return null;
}
}
@@ -0,0 +1,187 @@
/*
* Copyright (c) 2004-2015 Stuart Boston
*
* This file is part of TheMovieDB API.
*
* TheMovieDB API is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* TheMovieDB API is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
*
*/
package com.omertron.themoviedbapi.methods;
import com.omertron.themoviedbapi.MovieDbException;
import com.omertron.themoviedbapi.tools.ApiUrl;
import com.omertron.themoviedbapi.tools.HttpTools;
import com.omertron.themoviedbapi.tools.MethodBase;
import com.omertron.themoviedbapi.tools.MethodSub;
import com.omertron.themoviedbapi.tools.Param;
import com.omertron.themoviedbapi.tools.TmdbParameters;
import java.net.URL;
/**
* Class to hold the TV Methods
*
* @author stuart.boston
*/
public class TmdbTVSeasons extends AbstractMethod {
private static final int RATING_MAX = 10;
/**
* Constructor
*
* @param apiKey
* @param httpTools
*/
public TmdbTVSeasons(String apiKey, HttpTools httpTools) {
super(apiKey, httpTools);
}
/**
* Get the primary information about a TV season by its season number.
*
* @param tvID
* @param seasonNumber
* @param language
* @param appendToResponse
* @return
* @throws MovieDbException
*/
public String getSeasonInfo(int tvID, int seasonNumber, String language, String... appendToResponse) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBER, seasonNumber);
parameters.add(Param.LANGUAGE, language);
parameters.add(Param.APPEND, appendToResponse);
URL url = new ApiUrl(apiKey, MethodBase.SEASON).buildUrl(parameters);
return null;
}
/**
* Look up a TV season's changes by season ID.
*
* @param tvID
* @param startDate
* @param endDate
* @return
* @throws MovieDbException
*/
public String getSeasonChanges(int tvID, String startDate, String endDate) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.START_DATE, startDate);
parameters.add(Param.END_DATE, endDate);
URL url = new ApiUrl(apiKey, MethodBase.SEASON).subMethod(MethodSub.CHANGES).buildUrl(parameters);
return null;
}
/**
* This method lets users get the status of whether or not the TV episodes
* of a season have been rated.
*
* A valid session id is required.
*
* @param tvID
* @param sessionID
* @return
* @throws MovieDbException
*/
public String getSeasonAccountState(int tvID, String sessionID) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SESSION_ID, sessionID);
URL url = new ApiUrl(apiKey, MethodBase.SEASON).subMethod(MethodSub.ACCOUNT_STATES).buildUrl(parameters);
return null;
}
/**
* Get the cast & crew credits for a TV season by season number.
*
* @param tvID
* @param seasonNumber
* @return
* @throws MovieDbException
*/
public String getSeasonCredits(int tvID, int seasonNumber) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBER, seasonNumber);
URL url = new ApiUrl(apiKey, MethodBase.SEASON).subMethod(MethodSub.CREDITS).buildUrl(parameters);
return null;
}
/**
* Get the external ids that we have stored for a TV season by season
* number.
*
* @param tvID
* @param seasonNumber
* @param language
* @return
* @throws MovieDbException
*/
public String getSeasonExternalID(int tvID, int seasonNumber, String language) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBER, seasonNumber);
parameters.add(Param.LANGUAGE, language);
URL url = new ApiUrl(apiKey, MethodBase.SEASON).subMethod(MethodSub.EXTERNAL_IDS).buildUrl(parameters);
return null;
}
/**
* Get the images that we have stored for a TV season by season number.
*
* @param tvID
* @param seasonNumber
* @param language
* @param includeImageLanguage
* @return
* @throws MovieDbException
*/
public String getSeasonImages(int tvID, int seasonNumber, String language, String... includeImageLanguage) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBER, seasonNumber);
parameters.add(Param.LANGUAGE, language);
parameters.add(Param.APPEND, includeImageLanguage);
URL url = new ApiUrl(apiKey, MethodBase.SEASON).subMethod(MethodSub.IMAGES).buildUrl(parameters);
return null;
}
/**
* Get the videos that have been added to a TV season (trailers, teasers,
* etc...)
*
* @param tvID
* @param seasonNumber
* @param language
* @return
* @throws MovieDbException
*/
public String getSeasonVideos(int tvID, int seasonNumber, String language) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBER, seasonNumber);
parameters.add(Param.LANGUAGE, language);
URL url = new ApiUrl(apiKey, MethodBase.SEASON).subMethod(MethodSub.VIDEOS).buildUrl(parameters);
return null;
}
}
@@ -32,6 +32,7 @@ public enum MethodBase {
CONFIGURATION("configuration"),
CREDIT("credit"),
DISCOVER("discover"),
EPISODE("episode"),
FIND("find"),
GENRE("genre"),
GUEST_SESSION("guest_session"),
@@ -43,6 +44,7 @@ public enum MethodBase {
PERSON("person"),
REVIEW("review"),
SEARCH("search"),
SEASON("season"),
TIMEZONES("timezones"),
TV("tv");
@@ -32,43 +32,43 @@ public enum Param {
ADULT("include_adult="),
API_KEY("api_key="),
APPEND("append_to_response="),
CERTIFICATION("certification="),
CERTIFICATION_COUNTRY("certification_country="),
CERTIFICATION_LTE("certification.lte="),
CONFIRM("confirm="),
COUNTRY("country="),
END_DATE("end_date="),
EPISODE_NUMBER("episode_number="),
EXTERNAL_SOURCE("external_source="),
FAVORITE("favorite="),
FIRST_AIR_DATE_GTE("first_air_date.gte"),
FIRST_AIR_DATE_LTE("first_air_date.lte"),
FIRST_AIR_DATE_YEAR("first_air_date_year="),
GUEST_SESSION_ID("guest_session_id="),
ID("id="),
INCLUDE_ALL_MOVIES("include_all_movies="),
INCLUDE_ADULT("include_adult="),
INCLUDE_ALL_MOVIES("include_all_movies="),
INCLUDE_IMAGE_LANGUAGE("include_image_language="),
INCLUDE_VIDEO("include_video="),
LANGUAGE("language="),
MOVIE_ID("movie_id="),
MOVIE_WATCHLIST("movie_watchlist="),
PAGE("page="),
PASSWORD("password="),
PRIMARY_RELEASE_YEAR("primary_release_year="),
QUERY("query="),
RELEASE_DATE_GTE("release_date.gte="),
RELEASE_DATE_LTE("release_date.lte="),
SEARCH_TYPE("search_type="),
SEASON_NUMBER("season_number="),
SESSION_ID("session_id="),
SORT_BY("sort_by="),
SORT_ORDER("sort_order="),
START_DATE("start_date="),
TIMEZONE("timezone="),
TOKEN("request_token="),
USERNAME("username="),
VALUE("value="),
YEAR("year="),
// Discover parameters
CERTIFICATION("certification="),
CERTIFICATION_COUNTRY("certification_country="),
CERTIFICATION_LTE("certification.lte="),
FIRST_AIR_DATE_GTE("first_air_date.gte"),
FIRST_AIR_DATE_LTE("first_air_date.lte"),
FIRST_AIR_DATE_YEAR("first_air_date_year="),
INCLUDE_VIDEO("include_video="),
PRIMARY_RELEASE_YEAR("primary_release_year="),
RELEASE_DATE_GTE("release_date.gte="),
RELEASE_DATE_LTE("release_date.lte="),
SORT_BY("sort_by="),
SORT_ORDER("sort_order="),
VOTE_AVERAGE_GTE("vote_average.gte="),
VOTE_AVERAGE_LTE("vote_average.lte="),
VOTE_COUNT_GTE("vote_count.gte="),
@@ -79,7 +79,8 @@ public enum Param {
WITH_GENRES("with_genres="),
WITH_KEYWORDS("with_keywords="),
WITH_NETWORKS("with_networks="),
WITH_PEOPLE("with_people=");
WITH_PEOPLE("with_people="),
YEAR("year=");
private final String value;
@@ -0,0 +1,228 @@
/*
* Copyright (c) 2004-2015 Stuart Boston
*
* This file is part of TheMovieDB API.
*
* TheMovieDB API is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* TheMovieDB API is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
*
*/
package com.omertron.themoviedbapi.methods;
import com.omertron.themoviedbapi.AbstractTests;
import com.omertron.themoviedbapi.MovieDbException;
import com.omertron.themoviedbapi.TestID;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.fail;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/**
*
* @author Stuart.Boston
*/
public class TmdbTVEpisodesTest extends AbstractTests {
private static TmdbTVEpisodes instance;
private static final List<TestID> TV_IDS = new ArrayList<TestID>();
public TmdbTVEpisodesTest() {
}
@BeforeClass
public static void setUpClass() throws MovieDbException {
doConfiguration();
instance = new TmdbTVEpisodes(getApiKey(), getHttpTools());
TV_IDS.add(new TestID("The Walking Dead", "tt1520211", 1402, "Andrew Lincoln"));
// TV_IDS.add(new TestID("Supernatural", "tt0460681", 1622,"Misha Collins"));
// TV_IDS.add(new TestID("The Big Bang Theory", "tt0898266", 1418,"Kaley Cuoco"));
}
@AfterClass
public static void tearDownClass() {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of getEpisodeInfo method, of class TmdbTVEpisodes.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetEpisodeInfo() throws MovieDbException {
System.out.println("getEpisodeInfo");
int tvID = 0;
int seasonNumber = 0;
int episodeNumber = 0;
String language = LANGUAGE_DEFAULT;
String[] appendToResponse = null;
for (TestID test : TV_IDS) {
String result = instance.getEpisodeInfo(tvID, seasonNumber, episodeNumber, language, appendToResponse);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getEpisodeChanges method, of class TmdbTVEpisodes.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetEpisodeChanges() throws MovieDbException {
System.out.println("getEpisodeChanges");
int episodeID = 0;
String startDate = "";
String endDate = "";
for (TestID test : TV_IDS) {
String result = instance.getEpisodeChanges(episodeID, startDate, endDate);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getEpisodeAccountState method, of class TmdbTVEpisodes.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetEpisodeAccountState() throws MovieDbException {
System.out.println("getEpisodeAccountState");
int tvID = 0;
int seasonNumber = 0;
int episodeNumber = 0;
String sessionID = "";
for (TestID test : TV_IDS) {
String result = instance.getEpisodeAccountState(tvID, seasonNumber, episodeNumber, sessionID);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getEpisodeCredits method, of class TmdbTVEpisodes.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetEpisodeCredits() throws MovieDbException {
System.out.println("getEpisodeCredits");
int tvID = 0;
int seasonNumber = 0;
int episodeNumber = 0;
for (TestID test : TV_IDS) {
String result = instance.getEpisodeCredits(tvID, seasonNumber, episodeNumber);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getEpisodeExternalID method, of class TmdbTVEpisodes.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetEpisodeExternalID() throws MovieDbException {
System.out.println("getEpisodeExternalID");
int tvID = 0;
int seasonNumber = 0;
int episodeNumber = 0;
String language = LANGUAGE_DEFAULT;
for (TestID test : TV_IDS) {
String result = instance.getEpisodeExternalID(tvID, seasonNumber, episodeNumber, language);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getEpisodeImages method, of class TmdbTVEpisodes.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetEpisodeImages() throws MovieDbException {
System.out.println("getEpisodeImages");
int tvID = 0;
int seasonNumber = 0;
int episodeNumber = 0;
for (TestID test : TV_IDS) {
String result = instance.getEpisodeImages(tvID, seasonNumber, episodeNumber);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of postEpisodeRating method, of class TmdbTVEpisodes.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testPostEpisodeRating() throws MovieDbException {
System.out.println("postEpisodeRating");
int tvID = 0;
int seasonNumber = 0;
int episodeNumber = 0;
int rating = 0;
String sessionID = "";
String guestSessionID = "";
for (TestID test : TV_IDS) {
String result = instance.postEpisodeRating(tvID, seasonNumber, episodeNumber, rating, sessionID, guestSessionID);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getEpisodeVideos method, of class TmdbTVEpisodes.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetEpisodeVideos() throws MovieDbException {
System.out.println("getEpisodeVideos");
int tvID = 0;
int seasonNumber = 0;
int episodeNumber = 0;
String language = LANGUAGE_DEFAULT;
for (TestID test : TV_IDS) {
String result = instance.getEpisodeVideos(tvID, seasonNumber, episodeNumber, language);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}
@@ -0,0 +1,204 @@
/*
* Copyright (c) 2004-2015 Stuart Boston
*
* This file is part of TheMovieDB API.
*
* TheMovieDB API is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* TheMovieDB API is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
*
*/
package com.omertron.themoviedbapi.methods;
import com.omertron.themoviedbapi.AbstractTests;
import static com.omertron.themoviedbapi.AbstractTests.doConfiguration;
import static com.omertron.themoviedbapi.AbstractTests.getApiKey;
import static com.omertron.themoviedbapi.AbstractTests.getHttpTools;
import com.omertron.themoviedbapi.MovieDbException;
import com.omertron.themoviedbapi.TestID;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.fail;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/**
*
* @author Stuart.Boston
*/
public class TmdbTVSeasonsTest extends AbstractTests {
private static TmdbTVSeasons instance;
private static final List<TestID> TV_IDS = new ArrayList<TestID>();
public TmdbTVSeasonsTest() {
}
@BeforeClass
public static void setUpClass() throws MovieDbException {
doConfiguration();
instance = new TmdbTVSeasons(getApiKey(), getHttpTools());
TV_IDS.add(new TestID("The Walking Dead", "tt1520211", 1402, "Andrew Lincoln"));
// TV_IDS.add(new TestID("Supernatural", "tt0460681", 1622,"Misha Collins"));
// TV_IDS.add(new TestID("The Big Bang Theory", "tt0898266", 1418,"Kaley Cuoco"));
}
@AfterClass
public static void tearDownClass() {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of getSeasonInfo method, of class TmdbTVSeasons.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetSeasonInfo() throws MovieDbException {
System.out.println("getSeasonInfo");
int tvID = 0;
int seasonNumber = 0;
String language = LANGUAGE_DEFAULT;
String[] appendToResponse = null;
for (TestID test : TV_IDS) {
String result = instance.getSeasonInfo(tvID, seasonNumber, language, appendToResponse);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getSeasonChanges method, of class TmdbTVSeasons.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetSeasonChanges() throws MovieDbException {
System.out.println("getSeasonChanges");
int tvID = 0;
String startDate = "";
String endDate = "";
for (TestID test : TV_IDS) {
String result = instance.getSeasonChanges(tvID, startDate, endDate);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getSeasonAccountState method, of class TmdbTVSeasons.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetSeasonAccountState() throws MovieDbException {
System.out.println("getSeasonAccountState");
int tvID = 0;
String sessionID = "";
for (TestID test : TV_IDS) {
String result = instance.getSeasonAccountState(tvID, sessionID);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getSeasonCredits method, of class TmdbTVSeasons.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetSeasonCredits() throws MovieDbException {
System.out.println("getSeasonCredits");
int tvID = 0;
int seasonNumber = 0;
for (TestID test : TV_IDS) {
String result = instance.getSeasonCredits(tvID, seasonNumber);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getSeasonExternalID method, of class TmdbTVSeasons.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetSeasonExternalID() throws MovieDbException {
System.out.println("getSeasonExternalID");
int tvID = 0;
int seasonNumber = 0;
String language = LANGUAGE_DEFAULT;
for (TestID test : TV_IDS) {
String result = instance.getSeasonExternalID(tvID, seasonNumber, language);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getSeasonImages method, of class TmdbTVSeasons.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetSeasonImages() throws MovieDbException {
System.out.println("getSeasonImages");
int tvID = 0;
int seasonNumber = 0;
String language = LANGUAGE_DEFAULT;
String[] includeImageLanguage = null;
for (TestID test : TV_IDS) {
String result = instance.getSeasonImages(tvID, seasonNumber, language, includeImageLanguage);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getSeasonVideos method, of class TmdbTVSeasons.
*
* @throws com.omertron.themoviedbapi.MovieDbException
*/
@Test
public void testGetSeasonVideos() throws MovieDbException {
System.out.println("getSeasonVideos");
int tvID = 0;
int seasonNumber = 0;
String language = LANGUAGE_DEFAULT;
for (TestID test : TV_IDS) {
String result = instance.getSeasonVideos(tvID, seasonNumber, language);
}
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}
@@ -76,8 +76,8 @@ public class TmdbTVTest extends AbstractTests {
instance = new TmdbTV(getApiKey(), getHttpTools());
TV_IDS.add(new TestID("The Walking Dead", "tt1520211", 1402, "Andrew Lincoln"));
// TV_IDS.add(new TestID("Supernatural", "tt0460681", 1622,"Misha Collins"));
// TV_IDS.add(new TestID("The Big Bang Theory", "tt0898266", 1418,"Kaley Cuoco"));
TV_IDS.add(new TestID("Supernatural", "tt0460681", 1622, "Misha Collins"));
TV_IDS.add(new TestID("The Big Bang Theory", "tt0898266", 1418,"Kaley Cuoco"));
}
/**