Fixed test
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
89e849c27f
commit
9b071a378f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user