|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.eti.kinoshita.tap4j.consumer.AbstractTapConsumer
br.eti.kinoshita.tap4j.consumer.DefaultTapConsumer
public class DefaultTapConsumer
| Field Summary | |
|---|---|
protected Pattern |
bailOutREGEX
|
protected Pattern |
commentREGEX
|
protected Pattern |
footerREGEX
|
protected Pattern |
headerREGEX
|
protected boolean |
isFirstLine
|
protected boolean |
isHeaderSet
|
protected boolean |
isPlanBeforeTestResult
|
protected boolean |
isPlanSet
|
protected String |
lastLine
|
protected Pattern |
planREGEX
|
static String |
REGEX_BAIL_OUT
|
static String |
REGEX_COMMENT
|
static String |
REGEX_FOOTER
|
static String |
REGEX_HEADER
|
static String |
REGEX_PLAN
|
static String |
REGEX_TEST_RESULT
|
protected Pattern |
testResultREGEX
|
| Fields inherited from class br.eti.kinoshita.tap4j.consumer.AbstractTapConsumer |
|---|
bailOuts, comments, footer, header, plan, tapLines, testResults, testSet |
| Constructor Summary | |
|---|---|
DefaultTapConsumer()
|
|
| Method Summary | |
|---|---|
boolean |
isPlanBeforeTestResult()
|
void |
parseFile(File tapFile)
Parses a Tap File. |
void |
parseLine(String tapLine)
Parses a Test Result. |
void |
parseTapStream(String tapStream)
Parses a Tap Stream. |
void |
printDetails(PrintStream ps)
Prints the details of tests to a Print Stream. |
void |
printDetails(PrintWriter pw)
Prints the details of tests to a Print Writer. |
void |
printSummary(PrintStream ps)
Prints the summary of tests to a Print Stream. |
void |
printSummary(PrintWriter pw)
Prints the summary of tests to a Print Writer. |
| Methods inherited from class br.eti.kinoshita.tap4j.consumer.AbstractTapConsumer |
|---|
containsBailOut, containsNotOk, containsOk, getBailOuts, getComments, getFooter, getHeader, getNumberOfBailOuts, getNumberOfComments, getNumberOfTapLines, getNumberOfTestResults, getPlan, getTapLines, getTestResult, getTestResults, getTestSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REGEX_HEADER
public static final String REGEX_PLAN
public static final String REGEX_TEST_RESULT
public static final String REGEX_BAIL_OUT
public static final String REGEX_COMMENT
public static final String REGEX_FOOTER
protected Pattern headerREGEX
protected Pattern planREGEX
protected Pattern testResultREGEX
protected Pattern bailOutREGEX
protected Pattern commentREGEX
protected Pattern footerREGEX
protected boolean isFirstLine
protected boolean isHeaderSet
protected boolean isPlanSet
protected boolean isPlanBeforeTestResult
protected String lastLine
| Constructor Detail |
|---|
public DefaultTapConsumer()
| Method Detail |
|---|
public boolean isPlanBeforeTestResult()
public void parseLine(String tapLine)
throws TapParserException
TapConsumer
TapParserException
public void parseTapStream(String tapStream)
throws TapParserException
TapConsumer
tapStream - Tap Stream
TapParserException
public void parseFile(File tapFile)
throws TapParserException
TapConsumer
tapFile - Tap File
TapParserExceptionpublic void printSummary(PrintWriter pw)
TapConsumer
pw - Print Writer.public void printSummary(PrintStream ps)
TapConsumer
ps - Print Stream.public void printDetails(PrintWriter pw)
TapConsumer
pw - Print Writer.public void printDetails(PrintStream ps)
TapConsumer
ps - Print Stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||