|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.feedparser.DefaultFeedParserListener org.apache.commons.feedparser.impl.DebugFeedParserListener org.apache.commons.feedparser.impl.CaptureOutputFeedParserListener
public class CaptureOutputFeedParserListener
Code which can run a parse but capture the output to a string to verify certain methods were called via greping the output. This is ONLY for unit tests. When done you can just call toString() to get the output of all the events and then grep across it.
Constructor Summary | |
---|---|
CaptureOutputFeedParserListener()
|
Method Summary | |
---|---|
String |
toString()
|
Methods inherited from class org.apache.commons.feedparser.impl.DebugFeedParserListener |
---|
finished, init, onAuthor, onChannel, onChannelEnd, onComments, onCommentsFeed, onContent, onContentEncoded, onContentItem, onCreated, onFeedVersion, onFolder, onFolderEnd, onGUID, onImage, onImageEnd, onItem, onItemEnd, onLink, onLocale, onLocaleEnd, onRelation, onRelationEnd, onTag, onTagEnd, setContext |
Methods inherited from class org.apache.commons.feedparser.DefaultFeedParserListener |
---|
getContext, onAuthorEnd, onCommentsEnd, onCommentsFeedEnd, onContentEncodedEnd, onContentEnd, onContentItemEnd, onCopyright, onCopyrightEnd, onCreatedEnd, onGenerator, onGeneratorEnd, onGUIDEnd, onIssued, onIssuedEnd, onSubject, onSubjectEnd, onXHTMLBody, onXHTMLBodyEnd |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.commons.feedparser.FeedLifecycleListener |
---|
getContext |
Methods inherited from interface org.apache.commons.feedparser.MetaFeedParserListener |
---|
onAuthorEnd, onCommentsEnd, onCommentsFeedEnd, onCopyright, onCopyrightEnd, onCreatedEnd, onGenerator, onGeneratorEnd, onGUIDEnd, onIssued, onIssuedEnd, onSubject, onSubjectEnd |
Methods inherited from interface org.apache.commons.feedparser.ModContentFeedParserListener |
---|
onContentEncodedEnd, onContentItemEnd |
Constructor Detail |
---|
public CaptureOutputFeedParserListener()
Method Detail |
---|
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |