Improve error message in failing test case

This commit is contained in:
Kris De Volder
2018-02-13 15:36:07 -08:00
parent fbf8575e2a
commit 23f60f5679

View File

@@ -100,7 +100,7 @@ public class SpringBootAppTest {
foundAppNames.append("\n");
foundAppNames.append(app.getProcessName());
}
throw new NoSuchElementException("getAppContaining("+nameFragment+") in "+foundAppNames);
throw new NoSuchElementException("getAppContaining("+nameFragment+") in "+foundAppNames.toString());
}
} catch (Exception e) {
throw ExceptionUtil.unchecked(e);