@Test public void getResultMessageFromChildrenFirstLevel() { ApiCommandList commandList = getApiCommandList("name0", "message0", "serviceName0"); List<String> actual = ApiCommandUtil.getFailedCommandMessages(commandList); Assertions.assertEquals(actual.size(), 1); Assertions.assertEquals(actual.get(0), "name0(serviceName0): message0"); }
public static List<String> getFailedCommandMessages(ApiCommandList apiCommandList) { List<ApiCommand> failedCommands = getFailedCommands(apiCommandList); LOGGER.debug("Failed commands: {}", failedCommands); return failedCommands.stream().map(ApiCommandUtil::formatToLine).collect(toList()); }
ApiCommandUtil { public static List<String> getFailedCommandMessages(ApiCommandList apiCommandList) { List<ApiCommand> failedCommands = getFailedCommands(apiCommandList); LOGGER.debug("Failed commands: {}", failedCommands); return failedCommands.stream().map(ApiCommandUtil::formatToLine).collect(toList()); } }
ApiCommandUtil { public static List<String> getFailedCommandMessages(ApiCommandList apiCommandList) { List<ApiCommand> failedCommands = getFailedCommands(apiCommandList); LOGGER.debug("Failed commands: {}", failedCommands); return failedCommands.stream().map(ApiCommandUtil::formatToLine).collect(toList()); } private  ApiCommandUtil(); }
ApiCommandUtil { public static List<String> getFailedCommandMessages(ApiCommandList apiCommandList) { List<ApiCommand> failedCommands = getFailedCommands(apiCommandList); LOGGER.debug("Failed commands: {}", failedCommands); return failedCommands.stream().map(ApiCommandUtil::formatToLine).collect(toList()); } private  ApiCommandUtil(); static List<String> getFailedCommandMessages(ApiCommandList apiCommandList); }
ApiCommandUtil { public static List<String> getFailedCommandMessages(ApiCommandList apiCommandList) { List<ApiCommand> failedCommands = getFailedCommands(apiCommandList); LOGGER.debug("Failed commands: {}", failedCommands); return failedCommands.stream().map(ApiCommandUtil::formatToLine).collect(toList()); } private  ApiCommandUtil(); static List<String> getFailedCommandMessages(ApiCommandList apiCommandList);  }