From 193c53273b41f38f2074b079b748d6822e749f04 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 4 Feb 2010 14:30:39 +0000 Subject: [PATCH] * update unit-test --- .../sourceforge/filebot/web/TheTVDBClientTest.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/net/sourceforge/filebot/web/TheTVDBClientTest.java b/test/net/sourceforge/filebot/web/TheTVDBClientTest.java index e4ab5ffd..0fc14e1d 100644 --- a/test/net/sourceforge/filebot/web/TheTVDBClientTest.java +++ b/test/net/sourceforge/filebot/web/TheTVDBClientTest.java @@ -60,12 +60,19 @@ public class TheTVDBClientTest { assertTrue(list.size() >= 144); + // check ordinary episode Episode first = list.get(0); - assertEquals("Buffy the Vampire Slayer", first.getSeriesName()); - assertEquals("Unaired Pilot", first.getTitle()); - assertEquals("Special", first.getEpisode()); + assertEquals("Welcome to the Hellmouth (1)", first.getTitle()); + assertEquals("1", first.getEpisode()); assertEquals("1", first.getSeason()); + + // check special episode + Episode last = list.get(list.size() - 1); + assertEquals("Buffy the Vampire Slayer", last.getSeriesName()); + assertEquals("Season 5 Overview", last.getTitle()); + assertEquals("Special 17", last.getEpisode()); + assertEquals("0", last.getSeason()); }