@Test public void testGetMovieInfoByTitleAndYear() { @SuppressWarnings("unchecked") Movie omdbApiStyleMovie = client.getMovieInfoByTitleAndYear( "Star Trek", (short) 1996); assertNotNull("At least one Star Trek movie should've been found", omdbApiStyleMovie); assertEquals("Wrong IMDB Id", "tt0117731", omdbApiStyleMovie.getImdbId()); assertEquals("Wrong title", "Star Trek: First Contact", omdbApiStyleMovie.getTitle()); assertEquals("Wrong release year", 1996, omdbApiStyleMovie.getYear()); assertNotNull("Wrong genre", omdbApiStyleMovie.getGenre()); assertNotNull("Wrong rating", omdbApiStyleMovie.getImdbRating()); assertNotNull("Wrong runtime", omdbApiStyleMovie.getRuntime()); assertNotNull("Wrong votes", omdbApiStyleMovie.getImdbVotes()); System.out.println("testGetMovieInfoByTitleAndYear: " + omdbApiStyleMovie); }
@SafeVarargs public final Movie getMovieInfoByTitleAndYear(String title, short year, Map<String, String>... param) { Map<String, String> queryParam = getQueryParam(param); queryParam.put(getEnv().getProperty("omdbapi.title"), title); queryParam .put(getEnv().getProperty("omdbapi.year"), Short.toString(year)); return getMovieInfoInternal(queryParam, OmdbApiStyleMovie.class); }
OmdbApiClient extends AbstractClient { @SafeVarargs public final Movie getMovieInfoByTitleAndYear(String title, short year, Map<String, String>... param) { Map<String, String> queryParam = getQueryParam(param); queryParam.put(getEnv().getProperty("omdbapi.title"), title); queryParam .put(getEnv().getProperty("omdbapi.year"), Short.toString(year)); return getMovieInfoInternal(queryParam, OmdbApiStyleMovie.class); } }
OmdbApiClient extends AbstractClient { @SafeVarargs public final Movie getMovieInfoByTitleAndYear(String title, short year, Map<String, String>... param) { Map<String, String> queryParam = getQueryParam(param); queryParam.put(getEnv().getProperty("omdbapi.title"), title); queryParam .put(getEnv().getProperty("omdbapi.year"), Short.toString(year)); return getMovieInfoInternal(queryParam, OmdbApiStyleMovie.class); } OmdbApiClient(String endpoint); }
OmdbApiClient extends AbstractClient { @SafeVarargs public final Movie getMovieInfoByTitleAndYear(String title, short year, Map<String, String>... param) { Map<String, String> queryParam = getQueryParam(param); queryParam.put(getEnv().getProperty("omdbapi.title"), title); queryParam .put(getEnv().getProperty("omdbapi.year"), Short.toString(year)); return getMovieInfoInternal(queryParam, OmdbApiStyleMovie.class); } OmdbApiClient(String endpoint); @SafeVarargs final Movie getMovieInfoByTitleAndYear(String title, short year,
			Map<String, String>... param); @SafeVarargs final Movie getMovieInfoByTitleOnly(String title,
			Map<String, String>... param); @SafeVarargs final Movie getMovieInfoById(String id, Map<String, String>... param); }
OmdbApiClient extends AbstractClient { @SafeVarargs public final Movie getMovieInfoByTitleAndYear(String title, short year, Map<String, String>... param) { Map<String, String> queryParam = getQueryParam(param); queryParam.put(getEnv().getProperty("omdbapi.title"), title); queryParam .put(getEnv().getProperty("omdbapi.year"), Short.toString(year)); return getMovieInfoInternal(queryParam, OmdbApiStyleMovie.class); } OmdbApiClient(String endpoint); @SafeVarargs final Movie getMovieInfoByTitleAndYear(String title, short year,
			Map<String, String>... param); @SafeVarargs final Movie getMovieInfoByTitleOnly(String title,
			Map<String, String>... param); @SafeVarargs final Movie getMovieInfoById(String id, Map<String, String>... param);  }