From 1208b6c924db3ea2747e4f0fa92e19bc6839664f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 7 Oct 2008 16:55:17 +0000 Subject: [PATCH] * added unit test * updated root folder ignore pattern --- .../filebot/web/TVDotComClientTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/net/sourceforge/filebot/web/TVDotComClientTest.java b/test/net/sourceforge/filebot/web/TVDotComClientTest.java index fb86a290..038d901b 100644 --- a/test/net/sourceforge/filebot/web/TVDotComClientTest.java +++ b/test/net/sourceforge/filebot/web/TVDotComClientTest.java @@ -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 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");