@Test void testRenderEntriesAsJSONNodesWithScriptEndTag() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append( new TrivialComponentsEntriesNodePartRenderer().renderEntriesAsJSON(nodeList, Collections.<String>emptyList(), nodeMap)); assertThat(stringBuilder.toString().contains("</script>")).isFalse(); assertThat(stringBuilder.toString().contains("</script")).isFalse(); }
public String renderEntriesAsJSON(final List<Node> nodes, final List<String> mustacheKeys, final Map<Integer, Node> cachedNodes) { final StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("["); renderNodes(stringBuilder, nodes, 0, mustacheKeys, cachedNodes); stringBuilder.append("]"); return stringBuilder.toString(); }
TrivialComponentsEntriesNodePartRenderer { public String renderEntriesAsJSON(final List<Node> nodes, final List<String> mustacheKeys, final Map<Integer, Node> cachedNodes) { final StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("["); renderNodes(stringBuilder, nodes, 0, mustacheKeys, cachedNodes); stringBuilder.append("]"); return stringBuilder.toString(); } }
TrivialComponentsEntriesNodePartRenderer { public String renderEntriesAsJSON(final List<Node> nodes, final List<String> mustacheKeys, final Map<Integer, Node> cachedNodes) { final StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("["); renderNodes(stringBuilder, nodes, 0, mustacheKeys, cachedNodes); stringBuilder.append("]"); return stringBuilder.toString(); }  }
TrivialComponentsEntriesNodePartRenderer { public String renderEntriesAsJSON(final List<Node> nodes, final List<String> mustacheKeys, final Map<Integer, Node> cachedNodes) { final StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("["); renderNodes(stringBuilder, nodes, 0, mustacheKeys, cachedNodes); stringBuilder.append("]"); return stringBuilder.toString(); }  int renderNodes(final StringBuilder stringBuilder,
                           final List<Node> nodes,
                           final int index,
                           final List<String> mustacheKeys,
                           final Map<Integer, Node> cachedNodes); String renderEntriesAsJSON(final List<Node> nodes,
                                      final List<String> mustacheKeys,
                                      final Map<Integer, Node> cachedNodes); String renderNode(final List<String> mustacheKeys,
                             final Map<Integer, Node> cachedNodes,
                             final int index,
                             final Node node); static String getEditingMode(final HtmlInputText text); }
TrivialComponentsEntriesNodePartRenderer { public String renderEntriesAsJSON(final List<Node> nodes, final List<String> mustacheKeys, final Map<Integer, Node> cachedNodes) { final StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("["); renderNodes(stringBuilder, nodes, 0, mustacheKeys, cachedNodes); stringBuilder.append("]"); return stringBuilder.toString(); }  int renderNodes(final StringBuilder stringBuilder,
                           final List<Node> nodes,
                           final int index,
                           final List<String> mustacheKeys,
                           final Map<Integer, Node> cachedNodes); String renderEntriesAsJSON(final List<Node> nodes,
                                      final List<String> mustacheKeys,
                                      final Map<Integer, Node> cachedNodes); String renderNode(final List<String> mustacheKeys,
                             final Map<Integer, Node> cachedNodes,
                             final int index,
                             final Node node); static String getEditingMode(final HtmlInputText text);  }