@Test public void parseWhenNoParser() throws Exception { thrown.expect(MissingParserException.class); thrown.expectMessage("Failed to find a parser for syntax [XWiki 2.1]"); thrown.expectCause(any(ComponentLookupException.class)); mocker.getComponentUnderTest().parse("", Syntax.XWIKI_2_1, DOCUMENT_REFERENCE); }
@Override public XDOM parse(String content, Syntax syntax) throws ParseException, MissingParserException { return getParser(syntax).parse(new StringReader(content == null ? "" : content)); }
DefaultContentParser implements ContentParser { @Override public XDOM parse(String content, Syntax syntax) throws ParseException, MissingParserException { return getParser(syntax).parse(new StringReader(content == null ? "" : content)); } }
DefaultContentParser implements ContentParser { @Override public XDOM parse(String content, Syntax syntax) throws ParseException, MissingParserException { return getParser(syntax).parse(new StringReader(content == null ? "" : content)); }  }
DefaultContentParser implements ContentParser { @Override public XDOM parse(String content, Syntax syntax) throws ParseException, MissingParserException { return getParser(syntax).parse(new StringReader(content == null ? "" : content)); }  @Override XDOM parse(String content, Syntax syntax); @Override XDOM parse(String content, Syntax syntax, EntityReference source); }
DefaultContentParser implements ContentParser { @Override public XDOM parse(String content, Syntax syntax) throws ParseException, MissingParserException { return getParser(syntax).parse(new StringReader(content == null ? "" : content)); }  @Override XDOM parse(String content, Syntax syntax); @Override XDOM parse(String content, Syntax syntax, EntityReference source);  }