@Test public void generatePlaceholderId() { int prefix = 1; int index = 2; assertThat(ArticleUtil.generatePlaceholderId(prefix, index)) .contains(String.valueOf(prefix), String.valueOf(index)); }
public static String generatePlaceholderId(int prefix, int index) { return ID_PREFIX + "-" + prefix + "-" + index; }
ArticleUtil { public static String generatePlaceholderId(int prefix, int index) { return ID_PREFIX + "-" + prefix + "-" + index; } }
ArticleUtil { public static String generatePlaceholderId(int prefix, int index) { return ID_PREFIX + "-" + prefix + "-" + index; } @SuppressWarnings("unused") private  ArticleUtil(); }
ArticleUtil { public static String generatePlaceholderId(int prefix, int index) { return ID_PREFIX + "-" + prefix + "-" + index; } @SuppressWarnings("unused") private  ArticleUtil(); static TranslatableNodeList replaceNonTranslatableNodeHTML(int prefix,
            String html); static TranslatableNodeList replaceNonTranslatableNodeXML(int prefix,
            String xml); static String generatePlaceholderId(int prefix, int index); static Element generatePlaceholderNode(@NotNull String id); static Document wrapHTML(String html); static Document wrapXML(String html); static List<Node> unwrapAsNodes(@NotNull Element element); static List<Node> unwrapAsElements(@NotNull Element element); static @Nullable Node asElement(String html, Function<String, Element> toElement); static String replacePlaceholderWithNode(
            Map<String, Node> nodeIdMap, String xml, Function<String, Element> toElement); }
ArticleUtil { public static String generatePlaceholderId(int prefix, int index) { return ID_PREFIX + "-" + prefix + "-" + index; } @SuppressWarnings("unused") private  ArticleUtil(); static TranslatableNodeList replaceNonTranslatableNodeHTML(int prefix,
            String html); static TranslatableNodeList replaceNonTranslatableNodeXML(int prefix,
            String xml); static String generatePlaceholderId(int prefix, int index); static Element generatePlaceholderNode(@NotNull String id); static Document wrapHTML(String html); static Document wrapXML(String html); static List<Node> unwrapAsNodes(@NotNull Element element); static List<Node> unwrapAsElements(@NotNull Element element); static @Nullable Node asElement(String html, Function<String, Element> toElement); static String replacePlaceholderWithNode(
            Map<String, Node> nodeIdMap, String xml, Function<String, Element> toElement);  }