Remove unused constructors
This commit is contained in:
@@ -21,14 +21,11 @@ package com.omertron.themoviedbapi;
|
||||
|
||||
import com.omertron.themoviedbapi.model.movie.MovieInfo;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -47,9 +44,6 @@ public class CompareTest {
|
||||
private static final boolean CASE_SENSITIVE = true;
|
||||
private static final boolean NOT_CASE_SENSITIVE = false;
|
||||
|
||||
public CompareTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() {
|
||||
TestLogger.configure();
|
||||
|
||||
@@ -29,7 +29,8 @@ public class TestID {
|
||||
private int tmdb;
|
||||
private String other;
|
||||
|
||||
public TestID() {
|
||||
private TestID() {
|
||||
throw new UnsupportedOperationException("Must use argument constructors");
|
||||
}
|
||||
|
||||
public TestID(String name, String imdb, int tmdb) {
|
||||
|
||||
@@ -51,9 +51,6 @@ public class TmdbAccountTest extends AbstractTests {
|
||||
private static final int ID_MOVIE_FIGHT_CLUB = 550;
|
||||
private static final int ID_TV_WALKING_DEAD = 1402;
|
||||
|
||||
public TmdbAccountTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -39,9 +39,6 @@ public class TmdbAuthenticationTest extends AbstractTests {
|
||||
|
||||
private static TmdbAuthentication instance;
|
||||
|
||||
public TmdbAuthenticationTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
@@ -64,7 +61,7 @@ public class TmdbAuthenticationTest extends AbstractTests {
|
||||
/**
|
||||
* Test of getSessionToken method, of class TmdbAuthentication.
|
||||
*
|
||||
* TODO: Cannot be tested without a HTTP authorisation: <br/>
|
||||
* Cannot be tested without a HTTP authorisation: <br/>
|
||||
* http://help.themoviedb.org/kb/api/user-authentication
|
||||
*
|
||||
* @throws com.omertron.themoviedbapi.MovieDbException
|
||||
@@ -98,7 +95,7 @@ public class TmdbAuthenticationTest extends AbstractTests {
|
||||
*/
|
||||
@Test
|
||||
public void testGetSessionTokenLogin() throws MovieDbException {
|
||||
System.out.println("getSessionTokenLogin");
|
||||
LOG.info("getSessionTokenLogin");
|
||||
TokenAuthorisation token = instance.getAuthorisationToken();
|
||||
TokenAuthorisation result = instance.getSessionTokenLogin(token, getUsername(), getPassword());
|
||||
assertNotNull("Null token returned", result);
|
||||
|
||||
@@ -38,9 +38,6 @@ public class TmdbCertificationsTest extends AbstractTests {
|
||||
|
||||
private static TmdbCertifications instance;
|
||||
|
||||
public TmdbCertificationsTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -36,9 +36,6 @@ public class TmdbChangesTest extends AbstractTests {
|
||||
|
||||
private static TmdbChanges instance;
|
||||
|
||||
public TmdbChangesTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -38,9 +38,6 @@ public class TmdbCollectionsTest extends AbstractTests {
|
||||
private static TmdbCollections instance;
|
||||
private static final int ID_COLLECTION_STAR_WARS = 10;
|
||||
|
||||
public TmdbCollectionsTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -39,9 +39,6 @@ public class TmdbCompaniesTest extends AbstractTests {
|
||||
private static TmdbCompanies instance;
|
||||
private static final int ID_COMPANY = 2;
|
||||
|
||||
public TmdbCompaniesTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -42,9 +42,6 @@ public class TmdbConfigurationTest extends AbstractTests {
|
||||
|
||||
private static TmdbConfiguration instance;
|
||||
|
||||
public TmdbConfigurationTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -35,9 +35,6 @@ public class TmdbCreditsTest extends AbstractTests {
|
||||
|
||||
private static TmdbCredits instance;
|
||||
|
||||
public TmdbCreditsTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -37,9 +37,6 @@ public class TmdbDiscoverTest extends AbstractTests {
|
||||
|
||||
private static TmdbDiscover instance;
|
||||
|
||||
public TmdbDiscoverTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -54,9 +54,6 @@ public class TmdbEpisodesTest extends AbstractTests {
|
||||
private static final List<TestID> TV_IDS = new ArrayList<>();
|
||||
private static final String TESTING = "Testing: {}";
|
||||
|
||||
public TmdbEpisodesTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -44,9 +44,6 @@ public class TmdbFindTest extends AbstractTests {
|
||||
private static final List<TestID> TV_IDS = new ArrayList<>();
|
||||
private static final String TESTING = "Testing {}";
|
||||
|
||||
public TmdbFindTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -40,9 +40,6 @@ public class TmdbGenresTest extends AbstractTests {
|
||||
private static final String LIST_IS_NULL = "List is null";
|
||||
private static final int ID_GENRE_ACTION = 28;
|
||||
|
||||
public TmdbGenresTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -38,9 +38,6 @@ public class TmdbKeywordsTest extends AbstractTests {
|
||||
private static TmdbKeywords tmdb;
|
||||
private static final String ID_KEYWORD = "1721";
|
||||
|
||||
public TmdbKeywordsTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -47,9 +47,6 @@ public class TmdbListsTest extends AbstractTests {
|
||||
@Rule
|
||||
public ExpectedException exception = ExpectedException.none();
|
||||
|
||||
public TmdbListsTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -66,9 +66,6 @@ public class TmdbMoviesTest extends AbstractTests {
|
||||
private static final List<TestID> FILM_IDS = new ArrayList<>();
|
||||
private static final String WRONG_TITLE = "Wrong title";
|
||||
|
||||
public TmdbMoviesTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -38,9 +38,6 @@ public class TmdbNetworksTest extends AbstractTests {
|
||||
private static TmdbNetworks instance;
|
||||
private static final List<TestID> TEST_IDS = new ArrayList<>();
|
||||
|
||||
public TmdbNetworksTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -64,9 +64,6 @@ public class TmdbPeopleTest extends AbstractTests {
|
||||
private static final String INCORRECT_ID = "Incorrect ID";
|
||||
private static final String ID_CAST_CREW = "ID: {}, # Cast: {}, # Crew: {}";
|
||||
|
||||
public TmdbPeopleTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -37,9 +37,6 @@ public class TmdbReviewsTest extends AbstractTests {
|
||||
|
||||
private static TmdbReviews instance;
|
||||
|
||||
public TmdbReviewsTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -45,9 +45,6 @@ public class TmdbSearchTest extends AbstractTests {
|
||||
|
||||
private static TmdbSearch instance;
|
||||
|
||||
public TmdbSearchTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -52,9 +52,6 @@ public class TmdbSeasonsTest extends AbstractTests {
|
||||
private static final List<TestID> TV_IDS = new ArrayList<>();
|
||||
private static final String TESTING = "Testing: {}";
|
||||
|
||||
public TmdbSeasonsTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
@@ -65,9 +65,6 @@ public class TmdbTVTest extends AbstractTests {
|
||||
private static TmdbTV instance;
|
||||
private static final List<TestID> TV_IDS = new ArrayList<>();
|
||||
|
||||
public TmdbTVTest() {
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws MovieDbException {
|
||||
doConfiguration();
|
||||
|
||||
Reference in New Issue
Block a user