Improve error message in failing test case
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user