parent
1ad60f8e97
commit
1208b6c924
|
@ -108,6 +108,21 @@ public class TVDotComClientTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void getEpisodeListEncoding() throws Exception {
|
||||||
|
HyperLink lostTestResult = new HyperLink("Lost", new URL("http://www.tv.com/lost/show/24313/episode_listings.html"));
|
||||||
|
|
||||||
|
List<Episode> list = tvdotcom.getEpisodeList(lostTestResult, 3);
|
||||||
|
|
||||||
|
Episode episode = list.get(13);
|
||||||
|
|
||||||
|
assertEquals("Lost", episode.getShowName());
|
||||||
|
assertEquals("Exposé", episode.getTitle());
|
||||||
|
assertEquals("14", episode.getNumberOfEpisode());
|
||||||
|
assertEquals("3", episode.getNumberOfSeason());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getEpisodeListLink() {
|
public void getEpisodeListLink() {
|
||||||
assertEquals(tvdotcom.getEpisodeListLink(buffySearchResult, 1).toString(), "http://www.tv.com/buffy-the-vampire-slayer/show/10/episode_listings.html?season=1");
|
assertEquals(tvdotcom.getEpisodeListLink(buffySearchResult, 1).toString(), "http://www.tv.com/buffy-the-vampire-slayer/show/10/episode_listings.html?season=1");
|
||||||
|
|
Loading…
Reference in New Issue