@Test public void toHTML() throws Exception { String source = "wiki syntax"; Syntax syntax = new Syntax(new SyntaxType("syntax", "Syntax"), "x.y"); ContentParser contentParser = this.componentManager.getInstance(ContentParser.class); XDOM xdom = new XDOM(Collections.emptyList()); when(contentParser.parse(source, syntax, null)).thenReturn(xdom); assertEquals("", this.converter.toHTML(source, syntax.toIdString())); Transformation macroTransformation = this.componentManager.getInstance(Transformation.class, "macro"); RenderingContext renderingContext = this.componentManager.getInstance(RenderingContext.class); ArgumentCaptor<TransformationContext> txContextArgument = ArgumentCaptor.forClass(TransformationContext.class); verify((MutableRenderingContext) renderingContext).transformInContext(same(macroTransformation), txContextArgument.capture(), same(xdom)); assertEquals("wysiwygtxid", txContextArgument.getValue().getId()); BlockRenderer xhtmlRenderer = this.componentManager.getInstance(BlockRenderer.class, "annotatedxhtml/1.0"); verify(xhtmlRenderer).render(same(xdom), any(WikiPrinter.class)); }
@Override public String toHTML(String source, String syntaxId) { return toHTML(source, getSyntax(syntaxId), null); }
DefaultHTMLConverter implements HTMLConverter { @Override public String toHTML(String source, String syntaxId) { return toHTML(source, getSyntax(syntaxId), null); } }
DefaultHTMLConverter implements HTMLConverter { @Override public String toHTML(String source, String syntaxId) { return toHTML(source, getSyntax(syntaxId), null); }  }
DefaultHTMLConverter implements HTMLConverter { @Override public String toHTML(String source, String syntaxId) { return toHTML(source, getSyntax(syntaxId), null); }  @Override String fromHTML(String dirtyHTML, String syntaxId); @Override String toHTML(String source, String syntaxId); @Override String toHTML(String source, Syntax syntax, EntityReference sourceReference); @Override String parseAndRender(String dirtyHTML, String syntaxId); @Override String parseAndRender(String dirtyHTML, Syntax syntax, EntityReference sourceReference); }
DefaultHTMLConverter implements HTMLConverter { @Override public String toHTML(String source, String syntaxId) { return toHTML(source, getSyntax(syntaxId), null); }  @Override String fromHTML(String dirtyHTML, String syntaxId); @Override String toHTML(String source, String syntaxId); @Override String toHTML(String source, Syntax syntax, EntityReference sourceReference); @Override String parseAndRender(String dirtyHTML, String syntaxId); @Override String parseAndRender(String dirtyHTML, Syntax syntax, EntityReference sourceReference);  }