* added unit test

* updated root folder ignore pattern
This commit is contained in:
Reinhard Pointner 2008-10-07 16:55:17 +00:00
parent 1ad60f8e97
commit 1208b6c924
1 changed files with 15 additions and 0 deletions

View File

@ -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
public void getEpisodeListLink() {
assertEquals(tvdotcom.getEpisodeListLink(buffySearchResult, 1).toString(), "http://www.tv.com/buffy-the-vampire-slayer/show/10/episode_listings.html?season=1");