@Test public void appendKeyValues_should_append_nothing_on_null_keyValues() { StringBuilder html = new StringBuilder(); cut.appendKeyValues(html, null); assertThat(html).isEmpty(); }
void appendKeyValues(StringBuilder html, KeyValue[] keyValues) { if (keyValues != null && keyValues.length != 0) { html.append("<table>\n"); for (KeyValue header : keyValues) { html.append("<tr><th>").append(escapeHtml(header.getKey())) .append(":</th><td><pre>").append(escapeHtml(header.getValue())) .append("</pre></td></tr>\n"); } html.append("</table>\n"); } }
PostmanService { void appendKeyValues(StringBuilder html, KeyValue[] keyValues) { if (keyValues != null && keyValues.length != 0) { html.append("<table>\n"); for (KeyValue header : keyValues) { html.append("<tr><th>").append(escapeHtml(header.getKey())) .append(":</th><td><pre>").append(escapeHtml(header.getValue())) .append("</pre></td></tr>\n"); } html.append("</table>\n"); } } }
PostmanService { void appendKeyValues(StringBuilder html, KeyValue[] keyValues) { if (keyValues != null && keyValues.length != 0) { html.append("<table>\n"); for (KeyValue header : keyValues) { html.append("<tr><th>").append(escapeHtml(header.getKey())) .append(":</th><td><pre>").append(escapeHtml(header.getValue())) .append("</pre></td></tr>\n"); } html.append("</table>\n"); } }  }
PostmanService { void appendKeyValues(StringBuilder html, KeyValue[] keyValues) { if (keyValues != null && keyValues.length != 0) { html.append("<table>\n"); for (KeyValue header : keyValues) { html.append("<tr><th>").append(escapeHtml(header.getKey())) .append(":</th><td><pre>").append(escapeHtml(header.getValue())) .append("</pre></td></tr>\n"); } html.append("</table>\n"); } }  void parse(JsonParser parser, NewmanParsingResult result); List<ExecutedScenario> postProcess(Run run, NewmanParsingResult result, String newmanReportPath, AtomicInteger requestPosition); void deleteTempFiles(NewmanParsingResult newmanParsingResult); }
PostmanService { void appendKeyValues(StringBuilder html, KeyValue[] keyValues) { if (keyValues != null && keyValues.length != 0) { html.append("<table>\n"); for (KeyValue header : keyValues) { html.append("<tr><th>").append(escapeHtml(header.getKey())) .append(":</th><td><pre>").append(escapeHtml(header.getValue())) .append("</pre></td></tr>\n"); } html.append("</table>\n"); } }  void parse(JsonParser parser, NewmanParsingResult result); List<ExecutedScenario> postProcess(Run run, NewmanParsingResult result, String newmanReportPath, AtomicInteger requestPosition); void deleteTempFiles(NewmanParsingResult newmanParsingResult); static final String FOLDER_DELIMITER; }