@Test public void parseIsAddingMetadataSource() throws Exception { XDOM xdom = mocker.getComponentUnderTest().parse("", Syntax.PLAIN_1_0, DOCUMENT_REFERENCE); assertThat(xdom.getMetaData().getMetaData(MetaData.SOURCE), equalTo(SOURCE)); }
@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);  }