@Test public void generateStrong() { final String result = markup.convertAsHtml("<strong>Strong text</strong>"); assertEquals("<strong>Strong text</strong>", result); }
@Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); return markupString; }
HtmlMarkup extends AbstractMarkup { @Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); return markupString; } }
HtmlMarkup extends AbstractMarkup { @Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); return markupString; } HtmlMarkup(); }
HtmlMarkup extends AbstractMarkup { @Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); return markupString; } HtmlMarkup(); @Override String convertAsHtml(String markupString); }
HtmlMarkup extends AbstractMarkup { @Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); return markupString; } HtmlMarkup(); @Override String convertAsHtml(String markupString);  }