Fixed test

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2017-11-13 19:13:56 -05:00
parent 89e849c27f
commit 9b071a378f

View File

@ -180,7 +180,7 @@ public class ConsoleApplicationTest {
"", ""); "", "");
appl.interpretCommand("invalid cmd \"due to misplaced\"quote"); appl.interpretCommand("invalid cmd \"due to misplaced\"quote");
assertEquals("Command line cannot be parsed", test.readNextLine()); assertEquals("Command line cannot be parsed", out.readNextLine());
appl.interpretCommand(""); appl.interpretCommand("");
@ -225,9 +225,9 @@ public class ConsoleApplicationTest {
appl.interpretCommand("fail"); appl.interpretCommand("fail");
assertEquals( assertEquals(
Messages.getString("ConsoleApplication.cmd.failed", "fail"), Messages.getString("ConsoleApplication.cmd.failed", "fail"),
test.readNextLine()); out.readNextLine());
assertEquals(message, test.readNextLine()); assertEquals(message, out.readNextLine());
assertEquals(message, test.readNextLine()); assertEquals(message, out.readNextLine());
} catch (final IOException e) { } catch (final IOException e) {
assertNull(e); assertNull(e);