class PostmanService {

    String getStatus(List<Failure> failures, int requestedLine, boolean skipped) {
        if (skipped) {
            return Status.SKIPPED.getJsonValue();
        }
        if (failures != null) {
            for (Failure failure : failures) {
                if (toErrorLine(failure) == requestedLine) {
                    return Status.FAILED.getJsonValue();
                }
            }
        }
        return Status.PASSED.getJsonValue();
    }

}