Mercurial > hg > release > thermostat-0.6
changeset 985:dc3bedd9bf00
Fix integration test affected by previous change.
author | Jon VanAlten <jon.vanalten@redhat.com> |
---|---|
date | Tue, 19 Feb 2013 19:43:11 -0500 |
parents | 9bebac5faf9b |
children | c27dd7f147a9 |
files | integration-tests/src/test/java/com/redhat/thermostat/itest/CliTest.java |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/integration-tests/src/test/java/com/redhat/thermostat/itest/CliTest.java Tue Feb 19 17:59:24 2013 -0500 +++ b/integration-tests/src/test/java/com/redhat/thermostat/itest/CliTest.java Tue Feb 19 19:43:11 2013 -0500 @@ -152,8 +152,13 @@ @Test public void testShellUnrecognizedArgument() throws Exception { Spawn shell = spawnThermostat("shell", "--foo"); - shell.expectErr("Unrecognized option: --foo"); shell.expectClose(); + String stdOut = shell.getCurrentStandardOutContents(); + String expectedOut = "Unrecognized option: --foo\n" + + "usage: thermostat shell\n" + + " launches the Thermostat interactive shell\n" + + "thermostat shell\n\n"; + assertEquals(expectedOut, stdOut); } @Test