|
Jacson | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.spieleck.app.jacson.report.PrintingReport de.spieleck.app.jacson.report.TestReport
Report to test generated events against a reference file generated by PrintingReport.
Field Summary | |
protected int |
diffCount
Count different lines |
static java.lang.String |
IGNORE
|
protected int |
ignored
Number of ignored lines |
protected gnu.trove.THashSet |
ignores
names to be ignored on comparison |
protected java.io.LineNumberReader |
lnr
Input for the reference file. |
static java.lang.String |
REFERENCE_FILE
|
protected java.lang.StringBuffer |
sb
|
protected int |
valueCount
Number of values |
Fields inherited from class de.spieleck.app.jacson.report.PrintingReport |
begins, FILENAME_NODE, pw |
Constructor Summary | |
TestReport()
|
Method Summary | |
boolean |
accept(ConfigNode cn)
|
void |
addIgnore(java.lang.String ignore)
|
void |
clear()
|
void |
finish(boolean close)
Finish and optionally close the underlying resources |
int |
getDiffCount()
|
int |
getIgnores()
|
int |
getLineNumber()
|
int |
getValueCount()
|
void |
init(ConfigNode config)
Initialize the report. |
void |
report(java.lang.String localName,
java.lang.String value)
Report a single name value pair within a report |
void |
setReference(java.lang.String referenceName)
|
Methods inherited from class de.spieleck.app.jacson.report.PrintingReport |
begin, end, finish, getPrintWriter, getRegState, registerState, setOutputStream, setPrintWriter, useFilename, useFilename |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String REFERENCE_FILE
public static final java.lang.String IGNORE
protected java.io.LineNumberReader lnr
protected int diffCount
protected gnu.trove.THashSet ignores
protected int ignored
protected int valueCount
protected java.lang.StringBuffer sb
Constructor Detail |
public TestReport()
Method Detail |
public void init(ConfigNode config) throws JacsonConfigException
JacsonReport
ConfigNode
can be used to obtain
configuration information of the report from the global
config xml.
init
in interface JacsonReport
init
in class PrintingReport
JacsonConfigException
public void clear()
public void setReference(java.lang.String referenceName) throws JacsonConfigException
JacsonConfigException
public void addIgnore(java.lang.String ignore)
public boolean accept(ConfigNode cn)
accept
in interface ConfigVerify.Acceptor
accept
in class PrintingReport
public void report(java.lang.String localName, java.lang.String value)
JacsonReport
report
in interface JacsonReport
report
in class PrintingReport
public void finish(boolean close)
JacsonReport
finish
in interface JacsonReport
finish
in class PrintingReport
public int getDiffCount()
public int getIgnores()
public int getLineNumber()
public int getValueCount()
|
Spieleck | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |