@Test public void resolveSyntax() throws Exception { assertEquals(Syntax.XWIKI_2_1, this.mocker.getComponentUnderTest().resolveSyntax("xwiki/2.1")); }
public Syntax resolveSyntax(String syntaxId) { Syntax syntax; try { syntax = Syntax.valueOf(syntaxId); } catch (ParseException exception) { syntax = null; } return syntax; }
RenderingScriptService implements ScriptService { public Syntax resolveSyntax(String syntaxId) { Syntax syntax; try { syntax = Syntax.valueOf(syntaxId); } catch (ParseException exception) { syntax = null; } return syntax; } }
RenderingScriptService implements ScriptService { public Syntax resolveSyntax(String syntaxId) { Syntax syntax; try { syntax = Syntax.valueOf(syntaxId); } catch (ParseException exception) { syntax = null; } return syntax; }  }
RenderingScriptService implements ScriptService { public Syntax resolveSyntax(String syntaxId) { Syntax syntax; try { syntax = Syntax.valueOf(syntaxId); } catch (ParseException exception) { syntax = null; } return syntax; }  List<Syntax> getAvailableParserSyntaxes(); List<Syntax> getAvailableRendererSyntaxes(); List<String> getDefaultTransformationNames(); XDOM parse(String text, String syntaxId); String render(Block block, String outputSyntaxId); Syntax resolveSyntax(String syntaxId); String escape(String content, Syntax syntax); List<Syntax> getConfiguredSyntaxes(); List<Syntax> getDisabledSyntaxes(); List<MacroDescriptor> getMacroDescriptors(Syntax syntax); MacroId resolveMacroId(String macroIdAsString); MacroDescriptor getMacroDescriptor(MacroId macroId); }
RenderingScriptService implements ScriptService { public Syntax resolveSyntax(String syntaxId) { Syntax syntax; try { syntax = Syntax.valueOf(syntaxId); } catch (ParseException exception) { syntax = null; } return syntax; }  List<Syntax> getAvailableParserSyntaxes(); List<Syntax> getAvailableRendererSyntaxes(); List<String> getDefaultTransformationNames(); XDOM parse(String text, String syntaxId); String render(Block block, String outputSyntaxId); Syntax resolveSyntax(String syntaxId); String escape(String content, Syntax syntax); List<Syntax> getConfiguredSyntaxes(); List<Syntax> getDisabledSyntaxes(); List<MacroDescriptor> getMacroDescriptors(Syntax syntax); MacroId resolveMacroId(String macroIdAsString); MacroDescriptor getMacroDescriptor(MacroId macroId);  }