void (RunnerAndConfigurationSettings configurationSettings, String... checks) { String output = runAppAndGetOutput(configurationSettings); for (String check : checks) { assertTrue(String.format("App output should contain substring: %s, but was:\n%s", check, output), output.contains(check)); } }