ComingSoonPlugin extends ImdbPlugin { public String getComingSoonId(String movieName, String year) { return getComingSoonId(movieName, year, searchId); } ComingSoonPlugin(); @Override String getPluginID(); @Override boolean scan(Movie movie); String getComingSoonId(String movieName, String year); @Override boolean scanNFO(String nfo, Movie movie); static final String COMINGSOON_PLUGIN_ID; static final String COMINGSOON_NOT_PRESENT; static final String COMINGSOON_BASE_URL; static final String COMINGSOON_SEARCH_URL; static final String COMINGSOON_SEARCH_PARAMS; static final String CS_TITLE_PARAM; static final String CS_YEAR_PARAM; static final String COMINGSOON_KEY_PARAM; }
@Test public void testGetIdFromComingSoon() { LOG.info("testGetIdFromComingSoon"); String id = csPlugin.getComingSoonId("Avatar", "2009", "comingsoon"); assertEquals("Wrong ID", "846", id); }
@Test public void testGetIdFromGoogle() { LOG.info("testGetIdFromGoogle"); String id = csPlugin.getComingSoonId("Avatar", "2009", "google"); assertEquals("Wrong ID", "846", id); }