Updated project structure
This commit is contained in:
+8
-7
@@ -1,7 +1,8 @@
|
||||
*.class
|
||||
|
||||
# Package Files #
|
||||
*.jar
|
||||
*.war
|
||||
*.ear
|
||||
|
||||
*.class
|
||||
|
||||
# Package Files #
|
||||
*.jar
|
||||
*.war
|
||||
*.ear
|
||||
|
||||
/target/
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
@@ -11,14 +11,23 @@
|
||||
<maven>3.0.3</maven>
|
||||
</prerequisites>
|
||||
|
||||
<groupId>com.moviejukebox</groupId>
|
||||
<groupId>com.omertron</groupId>
|
||||
<artifactId>themoviedbapi</artifactId>
|
||||
<version>3.3-SNAPSHOT</version>
|
||||
<name>API-The MovieDB</name>
|
||||
<packaging>jar</packaging>
|
||||
<description>API for the TheMovieDb.org website</description>
|
||||
|
||||
<properties>
|
||||
<skipTests>false</skipTests>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<distribution.format>zip</distribution.format>
|
||||
</properties>
|
||||
|
||||
<issueManagement>
|
||||
<system>Google Code</system>
|
||||
<url>http://code.google.com/p/themoviedbapi/issues/list</url>
|
||||
<system>GitHub</system>
|
||||
<url>https://github.com/Omertron/api-themoviedb/issues</url>
|
||||
</issueManagement>
|
||||
|
||||
<ciManagement>
|
||||
@@ -27,18 +36,11 @@
|
||||
</ciManagement>
|
||||
|
||||
<scm>
|
||||
<connection>scm:svn:http://themoviedbapi.googlecode.com/svn/trunk/themoviedbapi</connection>
|
||||
<developerConnection>scm:svn:https://themoviedbapi.googlecode.com/svn/trunk/themoviedbapi</developerConnection>
|
||||
<url>http://code.google.com/p/themoviedbapi/source/browse/trunk/themoviedbapi</url>
|
||||
<url>scm:git:git@github.com:Omertron/api-themoviedb.git</url>
|
||||
<connection>scm:git:git@github.com:Omertron/api-themoviedb.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:Omertron/api-themoviedb.git</developerConnection>
|
||||
</scm>
|
||||
|
||||
<properties>
|
||||
<skipTests>false</skipTests>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<distribution.format>zip</distribution.format>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb;
|
||||
package com.omertron.themoviedbapi;
|
||||
|
||||
public class MovieDbException extends Exception {
|
||||
|
||||
+45
-14
@@ -7,16 +7,47 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb;
|
||||
package com.omertron.themoviedbapi;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.moviejukebox.themoviedb.MovieDbException.MovieDbExceptionType;
|
||||
import com.moviejukebox.themoviedb.model.*;
|
||||
import com.moviejukebox.themoviedb.tools.ApiUrl;
|
||||
import static com.moviejukebox.themoviedb.tools.ApiUrl.*;
|
||||
import com.moviejukebox.themoviedb.tools.FilteringLayout;
|
||||
import com.moviejukebox.themoviedb.tools.WebBrowser;
|
||||
import com.moviejukebox.themoviedb.wrapper.*;
|
||||
import com.omertron.themoviedbapi.MovieDbException.MovieDbExceptionType;
|
||||
import com.omertron.themoviedbapi.model.AlternativeTitle;
|
||||
import com.omertron.themoviedbapi.model.Artwork;
|
||||
import com.omertron.themoviedbapi.model.ArtworkType;
|
||||
import com.omertron.themoviedbapi.model.CollectionInfo;
|
||||
import com.omertron.themoviedbapi.model.Company;
|
||||
import com.omertron.themoviedbapi.model.Genre;
|
||||
import com.omertron.themoviedbapi.model.Keyword;
|
||||
import com.omertron.themoviedbapi.model.MovieDb;
|
||||
import com.omertron.themoviedbapi.model.Person;
|
||||
import com.omertron.themoviedbapi.model.PersonCast;
|
||||
import com.omertron.themoviedbapi.model.PersonCredit;
|
||||
import com.omertron.themoviedbapi.model.PersonCrew;
|
||||
import com.omertron.themoviedbapi.model.PersonType;
|
||||
import com.omertron.themoviedbapi.model.ReleaseInfo;
|
||||
import com.omertron.themoviedbapi.model.TmdbConfiguration;
|
||||
import com.omertron.themoviedbapi.model.TokenAuthorisation;
|
||||
import com.omertron.themoviedbapi.model.TokenSession;
|
||||
import com.omertron.themoviedbapi.model.Trailer;
|
||||
import com.omertron.themoviedbapi.model.Translation;
|
||||
import com.omertron.themoviedbapi.tools.ApiUrl;
|
||||
import static com.omertron.themoviedbapi.tools.ApiUrl.*;
|
||||
import com.omertron.themoviedbapi.tools.FilteringLayout;
|
||||
import com.omertron.themoviedbapi.tools.WebBrowser;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperAlternativeTitles;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperCompany;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperCompanyMovies;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperConfig;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperGenres;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperImages;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperMovie;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperMovieCasts;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperMovieKeywords;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperPerson;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperPersonCredits;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperReleaseInfo;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperTrailers;
|
||||
import com.omertron.themoviedbapi.wrapper.WrapperTranslations;
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
@@ -32,9 +63,9 @@ import org.apache.log4j.Logger;
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class TheMovieDb {
|
||||
public class TheMovieDbApi {
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(TheMovieDb.class);
|
||||
private static final Logger LOGGER = Logger.getLogger(TheMovieDbApi.class);
|
||||
private String apiKey;
|
||||
private TmdbConfiguration tmdbConfig;
|
||||
/*
|
||||
@@ -73,7 +104,7 @@ public class TheMovieDb {
|
||||
* @param apiKey
|
||||
* @throws MovieDbException
|
||||
*/
|
||||
public TheMovieDb(String apiKey) throws MovieDbException {
|
||||
public TheMovieDbApi(String apiKey) throws MovieDbException {
|
||||
this.apiKey = apiKey;
|
||||
ApiUrl apiUrl = new ApiUrl(this, "configuration");
|
||||
URL configUrl = apiUrl.buildUrl();
|
||||
@@ -92,11 +123,11 @@ public class TheMovieDb {
|
||||
* Output the API version information to the debug log
|
||||
*/
|
||||
public static void showVersion() {
|
||||
String apiTitle = TheMovieDb.class.getPackage().getSpecificationTitle();
|
||||
String apiTitle = TheMovieDbApi.class.getPackage().getSpecificationTitle();
|
||||
|
||||
if (StringUtils.isNotBlank(apiTitle)) {
|
||||
String apiVersion = TheMovieDb.class.getPackage().getSpecificationVersion();
|
||||
String apiRevision = TheMovieDb.class.getPackage().getImplementationVersion();
|
||||
String apiVersion = TheMovieDbApi.class.getPackage().getSpecificationVersion();
|
||||
String apiRevision = TheMovieDbApi.class.getPackage().getImplementationVersion();
|
||||
StringBuilder sv = new StringBuilder();
|
||||
sv.append(apiTitle).append(" ");
|
||||
sv.append(apiVersion).append(" r");
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
/**
|
||||
* ArtworkType enum List of the artwork types that are available
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
/**
|
||||
*
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import java.io.Serializable;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.model;
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
+6
-6
@@ -7,9 +7,9 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.tools;
|
||||
package com.omertron.themoviedbapi.tools;
|
||||
|
||||
import com.moviejukebox.themoviedb.TheMovieDb;
|
||||
import com.omertron.themoviedbapi.TheMovieDbApi;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
@@ -30,7 +30,7 @@ public class ApiUrl {
|
||||
*/
|
||||
private static final Logger LOGGER = Logger.getLogger(ApiUrl.class);
|
||||
/*
|
||||
* TheMovieDb API Base URL
|
||||
* TheMovieDbApi API Base URL
|
||||
*/
|
||||
private static final String TMDB_API_BASE = "http://api.themoviedb.org/3/";
|
||||
// private static final String TMDB_API_BASE = "http://private-3aa3-themoviedb.apiary.io/3/";
|
||||
@@ -43,7 +43,7 @@ public class ApiUrl {
|
||||
/*
|
||||
* Properties
|
||||
*/
|
||||
private TheMovieDb tmdb;
|
||||
private TheMovieDbApi tmdb;
|
||||
private String method;
|
||||
private String submethod;
|
||||
private Map<String, String> arguments = new HashMap<String, String>();
|
||||
@@ -71,7 +71,7 @@ public class ApiUrl {
|
||||
*
|
||||
* @param method
|
||||
*/
|
||||
public ApiUrl(TheMovieDb tmdb, String method) {
|
||||
public ApiUrl(TheMovieDbApi tmdb, String method) {
|
||||
this.tmdb = tmdb;
|
||||
this.method = method;
|
||||
this.submethod = DEFAULT_STRING;
|
||||
@@ -83,7 +83,7 @@ public class ApiUrl {
|
||||
* @param method
|
||||
* @param submethod
|
||||
*/
|
||||
public ApiUrl(TheMovieDb tmdb, String method, String submethod) {
|
||||
public ApiUrl(TheMovieDbApi tmdb, String method, String submethod) {
|
||||
this.tmdb = tmdb;
|
||||
this.method = method;
|
||||
this.submethod = submethod;
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.tools;
|
||||
package com.omertron.themoviedbapi.tools;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
+2
-2
@@ -7,9 +7,9 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.tools;
|
||||
package com.omertron.themoviedbapi.tools;
|
||||
|
||||
import com.moviejukebox.themoviedb.MovieDbException;
|
||||
import com.omertron.themoviedbapi.MovieDbException;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.AlternativeTitle;
|
||||
import com.omertron.themoviedbapi.model.AlternativeTitle;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.Company;
|
||||
import com.omertron.themoviedbapi.model.Company;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.MovieDb;
|
||||
import com.omertron.themoviedbapi.model.MovieDb;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.TmdbConfiguration;
|
||||
import com.omertron.themoviedbapi.model.TmdbConfiguration;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.Genre;
|
||||
import com.omertron.themoviedbapi.model.Genre;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.Artwork;
|
||||
import com.omertron.themoviedbapi.model.Artwork;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.MovieDb;
|
||||
import com.omertron.themoviedbapi.model.MovieDb;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+3
-3
@@ -7,12 +7,12 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.PersonCast;
|
||||
import com.moviejukebox.themoviedb.model.PersonCrew;
|
||||
import com.omertron.themoviedbapi.model.PersonCast;
|
||||
import com.omertron.themoviedbapi.model.PersonCrew;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.Keyword;
|
||||
import com.omertron.themoviedbapi.model.Keyword;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.Person;
|
||||
import com.omertron.themoviedbapi.model.Person;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.PersonCredit;
|
||||
import com.omertron.themoviedbapi.model.PersonCredit;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.ReleaseInfo;
|
||||
import com.omertron.themoviedbapi.model.ReleaseInfo;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.moviejukebox.themoviedb.model.Trailer;
|
||||
import com.omertron.themoviedbapi.model.Trailer;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
+2
-2
@@ -7,10 +7,10 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb.wrapper;
|
||||
package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.moviejukebox.themoviedb.model.Translation;
|
||||
import com.omertron.themoviedbapi.model.Translation;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
log4j.rootLogger=DEBUG, CONSOLE
|
||||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.CONSOLE.layout=com.moviejukebox.themoviedb.tools.FilteringLayout
|
||||
log4j.appender.CONSOLE.layout=com.omertron.themoviedbapi.tools.FilteringLayout
|
||||
#log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.CONSOLE.layout.ConversionPattern=[TheMovieDB API-%C{1}] %m%n
|
||||
#log4j.appender.CONSOLE.Threshold=DEBUG
|
||||
|
||||
+62
-48
@@ -7,10 +7,24 @@
|
||||
* For any reuse or distribution, you must make clear to others the
|
||||
* license terms of this work.
|
||||
*/
|
||||
package com.moviejukebox.themoviedb;
|
||||
package com.omertron.themoviedbapi;
|
||||
|
||||
import com.moviejukebox.themoviedb.model.*;
|
||||
import com.moviejukebox.themoviedb.tools.FilteringLayout;
|
||||
import com.omertron.themoviedbapi.model.AlternativeTitle;
|
||||
import com.omertron.themoviedbapi.model.Artwork;
|
||||
import com.omertron.themoviedbapi.model.CollectionInfo;
|
||||
import com.omertron.themoviedbapi.model.Company;
|
||||
import com.omertron.themoviedbapi.model.Genre;
|
||||
import com.omertron.themoviedbapi.model.Keyword;
|
||||
import com.omertron.themoviedbapi.model.MovieDb;
|
||||
import com.omertron.themoviedbapi.model.Person;
|
||||
import com.omertron.themoviedbapi.model.PersonCredit;
|
||||
import com.omertron.themoviedbapi.model.ReleaseInfo;
|
||||
import com.omertron.themoviedbapi.model.TmdbConfiguration;
|
||||
import com.omertron.themoviedbapi.model.TokenAuthorisation;
|
||||
import com.omertron.themoviedbapi.model.TokenSession;
|
||||
import com.omertron.themoviedbapi.model.Trailer;
|
||||
import com.omertron.themoviedbapi.model.Translation;
|
||||
import com.omertron.themoviedbapi.tools.FilteringLayout;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
@@ -20,17 +34,17 @@ import org.junit.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Test cases for TheMovieDb API
|
||||
* Test cases for TheMovieDbApi API
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class TheMovieDbTest {
|
||||
public class TheMovieDbApiTest {
|
||||
|
||||
// Logger
|
||||
private static final Logger LOGGER = Logger.getLogger(TheMovieDbTest.class);
|
||||
private static final Logger LOGGER = Logger.getLogger(TheMovieDbApiTest.class);
|
||||
// API Key
|
||||
private static final String API_KEY = "5a1a77e2eba8984804586122754f969f";
|
||||
private static TheMovieDb tmdb;
|
||||
private static TheMovieDbApi tmdb;
|
||||
// Test data
|
||||
private static final int ID_MOVIE_BLADE_RUNNER = 78;
|
||||
private static final int ID_MOVIE_STAR_WARS_COLLECTION = 10;
|
||||
@@ -39,8 +53,8 @@ public class TheMovieDbTest {
|
||||
private static final String COMPANY_NAME = "Marvel Studios";
|
||||
private static final int ID_GENRE_ACTION = 28;
|
||||
|
||||
public TheMovieDbTest() throws MovieDbException {
|
||||
tmdb = new TheMovieDb(API_KEY);
|
||||
public TheMovieDbApiTest() throws MovieDbException {
|
||||
tmdb = new TheMovieDbApi(API_KEY);
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
@@ -48,7 +62,7 @@ public class TheMovieDbTest {
|
||||
// Set the logger level to TRACE
|
||||
Logger.getRootLogger().setLevel(Level.TRACE);
|
||||
// Show the version of the API
|
||||
TheMovieDb.showVersion();
|
||||
TheMovieDbApi.showVersion();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
@@ -66,7 +80,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getConfiguration method, of class TheMovieDb.
|
||||
* Test of getConfiguration method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testConfiguration() throws IOException {
|
||||
@@ -82,7 +96,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of showVersion method, of class TheMovieDb.
|
||||
* Test of showVersion method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testShowVersion() {
|
||||
@@ -90,7 +104,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of searchMovie method, of class TheMovieDb.
|
||||
* Test of searchMovie method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testSearchMovie() throws MovieDbException {
|
||||
@@ -111,7 +125,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieInfo method, of class TheMovieDb.
|
||||
* Test of getMovieInfo method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieInfo() throws MovieDbException {
|
||||
@@ -122,7 +136,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieAlternativeTitles method, of class TheMovieDb.
|
||||
* Test of getMovieAlternativeTitles method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieAlternativeTitles() throws MovieDbException {
|
||||
@@ -138,7 +152,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieCasts method, of class TheMovieDb.
|
||||
* Test of getMovieCasts method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieCasts() throws MovieDbException {
|
||||
@@ -165,7 +179,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieImages method, of class TheMovieDb.
|
||||
* Test of getMovieImages method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieImages() throws MovieDbException {
|
||||
@@ -176,7 +190,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieKeywords method, of class TheMovieDb.
|
||||
* Test of getMovieKeywords method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieKeywords() throws MovieDbException {
|
||||
@@ -186,7 +200,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieReleaseInfo method, of class TheMovieDb.
|
||||
* Test of getMovieReleaseInfo method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieReleaseInfo() throws MovieDbException {
|
||||
@@ -196,7 +210,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieTrailers method, of class TheMovieDb.
|
||||
* Test of getMovieTrailers method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieTrailers() throws MovieDbException {
|
||||
@@ -206,7 +220,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieTranslations method, of class TheMovieDb.
|
||||
* Test of getMovieTranslations method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieTranslations() throws MovieDbException {
|
||||
@@ -216,7 +230,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getCollectionInfo method, of class TheMovieDb.
|
||||
* Test of getCollectionInfo method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetCollectionInfo() throws MovieDbException {
|
||||
@@ -227,7 +241,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of createImageUrl method, of class TheMovieDb.
|
||||
* Test of createImageUrl method, of class TheMovieDbApi.
|
||||
* @throws MovieDbException
|
||||
*/
|
||||
@Test
|
||||
@@ -239,7 +253,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getMovieInfoImdb method, of class TheMovieDb.
|
||||
* Test of getMovieInfoImdb method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetMovieInfoImdb() throws MovieDbException {
|
||||
@@ -249,7 +263,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getApiKey method, of class TheMovieDb.
|
||||
* Test of getApiKey method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetApiKey() {
|
||||
@@ -257,7 +271,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getApiBase method, of class TheMovieDb.
|
||||
* Test of getApiBase method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetApiBase() {
|
||||
@@ -265,7 +279,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getConfiguration method, of class TheMovieDb.
|
||||
* Test of getConfiguration method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetConfiguration() {
|
||||
@@ -273,7 +287,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of searchPeople method, of class TheMovieDb.
|
||||
* Test of searchPeople method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testSearchPeople() throws MovieDbException {
|
||||
@@ -285,7 +299,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getPersonInfo method, of class TheMovieDb.
|
||||
* Test of getPersonInfo method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetPersonInfo() throws MovieDbException {
|
||||
@@ -295,7 +309,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getPersonCredits method, of class TheMovieDb.
|
||||
* Test of getPersonCredits method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetPersonCredits() throws MovieDbException {
|
||||
@@ -306,7 +320,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getPersonImages method, of class TheMovieDb.
|
||||
* Test of getPersonImages method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetPersonImages() throws MovieDbException {
|
||||
@@ -317,7 +331,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getLatestMovie method, of class TheMovieDb.
|
||||
* Test of getLatestMovie method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetLatestMovie() throws MovieDbException {
|
||||
@@ -328,7 +342,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of compareMovies method, of class TheMovieDb.
|
||||
* Test of compareMovies method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testCompareMovies() {
|
||||
@@ -336,7 +350,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of setProxy method, of class TheMovieDb.
|
||||
* Test of setProxy method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testSetProxy() {
|
||||
@@ -344,7 +358,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of setTimeout method, of class TheMovieDb.
|
||||
* Test of setTimeout method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testSetTimeout() {
|
||||
@@ -352,7 +366,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getNowPlayingMovies method, of class TheMovieDb.
|
||||
* Test of getNowPlayingMovies method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetNowPlayingMovies() throws MovieDbException {
|
||||
@@ -362,7 +376,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getPopularMovieList method, of class TheMovieDb.
|
||||
* Test of getPopularMovieList method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetPopularMovieList() throws MovieDbException {
|
||||
@@ -372,7 +386,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getTopRatedMovies method, of class TheMovieDb.
|
||||
* Test of getTopRatedMovies method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetTopRatedMovies() throws MovieDbException {
|
||||
@@ -382,7 +396,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getCompanyInfo method, of class TheMovieDb.
|
||||
* Test of getCompanyInfo method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetCompanyInfo() throws MovieDbException {
|
||||
@@ -392,7 +406,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getCompanyMovies method, of class TheMovieDb.
|
||||
* Test of getCompanyMovies method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetCompanyMovies() throws MovieDbException {
|
||||
@@ -402,7 +416,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of searchCompanies method, of class TheMovieDb.
|
||||
* Test of searchCompanies method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testSearchCompanies() throws MovieDbException {
|
||||
@@ -412,7 +426,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getSimilarMovies method, of class TheMovieDb.
|
||||
* Test of getSimilarMovies method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetSimilarMovies() throws MovieDbException {
|
||||
@@ -422,7 +436,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getGenreList method, of class TheMovieDb.
|
||||
* Test of getGenreList method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetGenreList() throws MovieDbException {
|
||||
@@ -432,7 +446,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getGenreMovies method, of class TheMovieDb.
|
||||
* Test of getGenreMovies method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetGenreMovies() throws MovieDbException {
|
||||
@@ -442,7 +456,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getUpcoming method, of class TheMovieDb.
|
||||
* Test of getUpcoming method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetUpcoming() throws Exception {
|
||||
@@ -452,7 +466,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getCollectionImages method, of class TheMovieDb.
|
||||
* Test of getCollectionImages method, of class TheMovieDbApi.
|
||||
*/
|
||||
@Test
|
||||
public void testGetCollectionImages() throws Exception {
|
||||
@@ -463,7 +477,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getAuthorisationToken method, of class TheMovieDb.
|
||||
* Test of getAuthorisationToken method, of class TheMovieDbApi.
|
||||
*/
|
||||
// @Test
|
||||
public void testGetAuthorisationToken() throws Exception {
|
||||
@@ -475,7 +489,7 @@ public class TheMovieDbTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getSessionToken method, of class TheMovieDb.
|
||||
* Test of getSessionToken method, of class TheMovieDbApi.
|
||||
*/
|
||||
// @Test
|
||||
public void testGetSessionToken() throws Exception {
|
||||
Reference in New Issue
Block a user