1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-10 21:38:04 -05:00

* fix test cases

This commit is contained in:
Reinhard Pointner 2010-10-24 13:26:30 +00:00
parent f53887c7ea
commit 51018d7ae7
3 changed files with 5 additions and 14 deletions

View File

@ -116,16 +116,6 @@ public class ExpressionFormatTest {
}
@Test
public void illegalMethod() throws Exception {
TestScriptFormat format = new TestScriptFormat("{value.xyz()}");
format.format("test");
// check message
assertEquals("No signature of method: java.lang.String.xyz() is applicable for argument types: () values: []", format.caughtScriptException().getMessage());
}
protected static class TestScriptFormat extends ExpressionFormat {
public TestScriptFormat(String format) throws ScriptException {

View File

@ -80,8 +80,8 @@ public class IMDbClientTest {
assertEquals("Buffy the Vampire Slayer", last.getSeriesName());
assertEquals("Chosen", last.getTitle());
assertEquals("22", last.getEpisode());
assertEquals("7", last.getSeason());
assertEquals("22", last.getEpisode().toString());
assertEquals("7", last.getSeason().toString());
assertEquals("2003-05-20", last.airdate().toString());
}

View File

@ -72,8 +72,9 @@ public class TheTVDBClientTest {
Episode last = list.get(list.size() - 1);
assertEquals("Buffy the Vampire Slayer", last.getSeriesName());
assertEquals("Unaired Pilot", last.getTitle());
assertEquals("Special 1", last.getEpisode());
assertEquals("1", last.getSeason());
assertEquals("1", last.getSeason().toString());
assertEquals(null, last.getEpisode());
assertEquals("1", last.getSpecial().toString());
assertEquals(null, last.airdate());
}