@Test public void testRun() throws ExecuteException { Formatdb formatdb = runInTempDir(); if (formatdb.getLastExitValue() != 0) { String errorMessage = "Command: " + formatdb.getExecutedCommand() + "\n" + "Return: " + formatdb.getLastExitValue() + "\n" + "Output: " + formatdb.getLastRunOutput() + "\n" + "Error: " + formatdb.getLastRunError() + "\n" + "Formatdb test should return 0. Returned " + formatdb.getLastExitValue(); assertTrue(errorMessage, false); } }