mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04:00
* added unit test
* updated root folder ignore pattern
This commit is contained in:
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
|
||||
public void getEpisodeListLink() {
|
||||
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
Block a user