Permalink
Browse files

Avoid error by expecting an Integer after execution of FitNesseMain.

Return value can be null, in case we're not performing a command.
  • Loading branch information...
amolenaar committed Feb 11, 2014
1 parent cc4d881 commit 73318841ff46bf76344aa6f68637fb6e5813a7aa
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/fitnesseMain/FitNesseMainTest.java
@@ -116,7 +116,7 @@ private String runFitnesseMainWith(String... args) throws Exception {
ByteArrayOutputStream outputBytes = new ByteArrayOutputStream();
System.setErr(new PrintStream(outputBytes));
Arguments arguments = new Arguments(args);
- int exitCode = new FitNesseMain().launchFitNesse(arguments);
+ Integer exitCode = new FitNesseMain().launchFitNesse(arguments);
assertThat(exitCode, is(0));
System.setErr(err);
String response = outputBytes.toString();

0 comments on commit 7331884

Please sign in to comment.