br.eti.kinoshita.tap4j.consumer
Class DefaultTapConsumer

java.lang.Object
  extended by br.eti.kinoshita.tap4j.consumer.AbstractTapConsumer
      extended by br.eti.kinoshita.tap4j.consumer.DefaultTapConsumer
All Implemented Interfaces:
TapConsumer

public class DefaultTapConsumer
extends AbstractTapConsumer

Since:
1.0
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br

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

REGEX_HEADER

public static final String REGEX_HEADER
See Also:
Constant Field Values

REGEX_PLAN

public static final String REGEX_PLAN
See Also:
Constant Field Values

REGEX_TEST_RESULT

public static final String REGEX_TEST_RESULT
See Also:
Constant Field Values

REGEX_BAIL_OUT

public static final String REGEX_BAIL_OUT
See Also:
Constant Field Values

REGEX_COMMENT

public static final String REGEX_COMMENT
See Also:
Constant Field Values

REGEX_FOOTER

public static final String REGEX_FOOTER
See Also:
Constant Field Values

headerREGEX

protected Pattern headerREGEX

planREGEX

protected Pattern planREGEX

testResultREGEX

protected Pattern testResultREGEX

bailOutREGEX

protected Pattern bailOutREGEX

commentREGEX

protected Pattern commentREGEX

footerREGEX

protected Pattern footerREGEX

isFirstLine

protected boolean isFirstLine

isHeaderSet

protected boolean isHeaderSet

isPlanSet

protected boolean isPlanSet

isPlanBeforeTestResult

protected boolean isPlanBeforeTestResult

lastLine

protected String lastLine
Constructor Detail

DefaultTapConsumer

public DefaultTapConsumer()
Method Detail

isPlanBeforeTestResult

public boolean isPlanBeforeTestResult()

parseLine

public void parseLine(String tapLine)
               throws TapParserException
Description copied from interface: TapConsumer
Parses a Test Result.

Throws:
TapParserException

parseTapStream

public void parseTapStream(String tapStream)
                    throws TapParserException
Description copied from interface: TapConsumer
Parses a Tap Stream.

Parameters:
tapStream - Tap Stream
Throws:
TapParserException

parseFile

public void parseFile(File tapFile)
               throws TapParserException
Description copied from interface: TapConsumer
Parses a Tap File.

Parameters:
tapFile - Tap File
Throws:
TapParserException

printSummary

public void printSummary(PrintWriter pw)
Description copied from interface: TapConsumer
Prints the summary of tests to a Print Writer.

Parameters:
pw - Print Writer.

printSummary

public void printSummary(PrintStream ps)
Description copied from interface: TapConsumer
Prints the summary of tests to a Print Stream.

Parameters:
ps - Print Stream.

printDetails

public void printDetails(PrintWriter pw)
Description copied from interface: TapConsumer
Prints the details of tests to a Print Writer.

Parameters:
pw - Print Writer.

printDetails

public void printDetails(PrintStream ps)
Description copied from interface: TapConsumer
Prints the details of tests to a Print Stream.

Parameters:
ps - Print Stream.


Copyright © 2010. All Rights Reserved.