@ -39,6 +39,7 @@ import com.omertron.themoviedbapi.model2.media.MediaCreditCast;
import com.omertron.themoviedbapi.model2.media.MediaCreditList ;
import com.omertron.themoviedbapi.model2.media.MediaState ;
import com.omertron.themoviedbapi.model2.movie.AlternativeTitle ;
import com.omertron.themoviedbapi.model2.review.Review ;
import com.omertron.themoviedbapi.results.TmdbResultsList ;
import com.omertron.themoviedbapi.tools.MethodBase ;
import com.omertron.themoviedbapi.wrapper.WrapperChanges ;
@ -53,7 +54,6 @@ 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.BeforeClass ;
import org.junit.Test ;
@ -85,7 +85,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieInfo ( ) throws MovieDbException {
LOG . info ( "getMovieInfo" ) ;
@ -105,7 +105,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieInfoImdb ( ) throws MovieDbException {
LOG . info ( "getMovieInfoImdb" ) ;
String language = LANGUAGE_DEFAULT ;
@ -123,7 +123,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieAccountState ( ) throws MovieDbException {
LOG . info ( "getMovieAccountState" ) ;
@ -139,7 +139,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieAlternativeTitles ( ) throws MovieDbException {
LOG . info ( "getMovieAlternativeTitles" ) ;
@ -157,7 +157,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieCredits ( ) throws MovieDbException {
LOG . info ( "getMovieCredits" ) ;
@ -187,7 +187,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieImages ( ) throws MovieDbException {
LOG . info ( "getMovieImages" ) ;
@ -222,7 +222,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieKeywords ( ) throws MovieDbException {
LOG . info ( "getMovieKeywords" ) ;
@ -239,7 +239,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieReleaseInfo ( ) throws MovieDbException {
LOG . info ( "getMovieReleaseInfo" ) ;
@ -257,7 +257,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieVideos ( ) throws MovieDbException {
LOG . info ( "getMovieVideos" ) ;
@ -275,7 +275,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieTranslations ( ) throws MovieDbException {
LOG . info ( "getMovieTranslations" ) ;
@ -292,7 +292,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetSimilarMovies ( ) throws MovieDbException {
LOG . info ( "getSimilarMovies" ) ;
@ -320,10 +320,13 @@ public class TmdbMoviesTest extends AbstractTests {
String [ ] appendToResponse = null ;
for ( TestID test : FILM_IDS ) {
String result = instance . getMovieReviews ( test . getTmdb ( ) , page , language , appendToResponse ) ;
if ( test . getTmdb ( ) = = 76757 ) {
// Has no reviews
continue ;
}
TmdbResultsList < Review > result = instance . getMovieReviews ( test . getTmdb ( ) , page , language , appendToResponse ) ;
assertFalse ( "No reviews" , result . isEmpty ( ) ) ;
}
// TODO review the generated test code and remove the default call to fail.
fail ( "The test case is a prototype." ) ;
}
/ * *
@ -331,7 +334,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieLists ( ) throws MovieDbException {
LOG . info ( "getMovieLists" ) ;
@ -351,7 +354,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetMovieChanges ( ) throws MovieDbException {
LOG . info ( "getMovieChanges" ) ;
SimpleDateFormat sdf = new SimpleDateFormat ( "yyyy-MM-dd" ) ;
@ -382,7 +385,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testPostMovieRating ( ) throws MovieDbException {
LOG . info ( "postMovieRating" ) ;
Integer rating = new Random ( ) . nextInt ( 10 ) + 1 ;
@ -398,7 +401,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetLatestMovie ( ) throws MovieDbException {
LOG . info ( "getLatestMovie" ) ;
@ -413,7 +416,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetUpcoming ( ) throws MovieDbException {
LOG . info ( "getUpcoming" ) ;
Integer page = null ;
@ -428,7 +431,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetNowPlayingMovies ( ) throws MovieDbException {
LOG . info ( "getNowPlayingMovies" ) ;
Integer page = null ;
@ -443,7 +446,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetPopularMovieList ( ) throws MovieDbException {
LOG . info ( "getPopularMovieList" ) ;
Integer page = null ;
@ -458,7 +461,7 @@ public class TmdbMoviesTest extends AbstractTests {
*
* @throws com . omertron . themoviedbapi . MovieDbException
* /
@Test
//@Test
public void testGetTopRatedMovies ( ) throws MovieDbException {
LOG . info ( "getTopRatedMovies" ) ;
Integer page = null ;