@Test public void toHtml_ShouldReturnEmpty_WhenDataIsNull() { final String nullText = null; final TextEmbedding cut = new TextEmbedding(null, null, nullText, null); final String html = cut.toHtml(); assertThat(html).isEmpty(); }
@Override public String toHtml() { Object text = getData(); return (text == null ? "" : StringEscapeUtils.escapeXml10(text.toString())); }
TextEmbedding extends StructuredEmbedding { @Override public String toHtml() { Object text = getData(); return (text == null ? "" : StringEscapeUtils.escapeXml10(text.toString())); } }
TextEmbedding extends StructuredEmbedding { @Override public String toHtml() { Object text = getData(); return (text == null ? "" : StringEscapeUtils.escapeXml10(text.toString())); } TextEmbedding(String kind, String name, String text, EmbeddingPriority priority); }
TextEmbedding extends StructuredEmbedding { @Override public String toHtml() { Object text = getData(); return (text == null ? "" : StringEscapeUtils.escapeXml10(text.toString())); } TextEmbedding(String kind, String name, String text, EmbeddingPriority priority); @Override String toHtml(); }
TextEmbedding extends StructuredEmbedding { @Override public String toHtml() { Object text = getData(); return (text == null ? "" : StringEscapeUtils.escapeXml10(text.toString())); } TextEmbedding(String kind, String name, String text, EmbeddingPriority priority); @Override String toHtml();  }