@Test public void parseWithEmptyContent() throws Exception { XDOM xdom = this.mocker.getComponentUnderTest().parse(new StringReader("")); assertTrue(xdom.getChildren().isEmpty()); }
@Override public XDOM parse(Reader source) throws ParseException { Reader pushBackReader = getPushBackReader(source); if (pushBackReader != null) { return super.parse(pushBackReader); } else { return new XDOM(Collections.emptyList()); } }
XHTMLParser extends AbstractWikiModelParser { @Override public XDOM parse(Reader source) throws ParseException { Reader pushBackReader = getPushBackReader(source); if (pushBackReader != null) { return super.parse(pushBackReader); } else { return new XDOM(Collections.emptyList()); } } }
XHTMLParser extends AbstractWikiModelParser { @Override public XDOM parse(Reader source) throws ParseException { Reader pushBackReader = getPushBackReader(source); if (pushBackReader != null) { return super.parse(pushBackReader); } else { return new XDOM(Collections.emptyList()); } }  }
XHTMLParser extends AbstractWikiModelParser { @Override public XDOM parse(Reader source) throws ParseException { Reader pushBackReader = getPushBackReader(source); if (pushBackReader != null) { return super.parse(pushBackReader); } else { return new XDOM(Collections.emptyList()); } }  @Override Syntax getSyntax(); @Override StreamParser getLinkLabelParser(); @Override IWikiParser createWikiModelParser(); @Override ResourceReferenceParser getLinkReferenceParser(); @Override ResourceReferenceParser getImageReferenceParser(); @Override XWikiGeneratorListener createXWikiGeneratorListener(Listener listener, IdGenerator idGenerator); @Override XDOM parse(Reader source); @Override void parse(Reader source, Listener listener); }
XHTMLParser extends AbstractWikiModelParser { @Override public XDOM parse(Reader source) throws ParseException { Reader pushBackReader = getPushBackReader(source); if (pushBackReader != null) { return super.parse(pushBackReader); } else { return new XDOM(Collections.emptyList()); } }  @Override Syntax getSyntax(); @Override StreamParser getLinkLabelParser(); @Override IWikiParser createWikiModelParser(); @Override ResourceReferenceParser getLinkReferenceParser(); @Override ResourceReferenceParser getImageReferenceParser(); @Override XWikiGeneratorListener createXWikiGeneratorListener(Listener listener, IdGenerator idGenerator); @Override XDOM parse(Reader source); @Override void parse(Reader source, Listener listener);  }