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:
parent
f53887c7ea
commit
51018d7ae7
@ -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 {
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user